Package | Description |
---|---|
org.pac4j.core.authorization | |
org.pac4j.core.client | |
org.pac4j.core.profile |
Modifier and Type | Interface and Description |
---|---|
interface |
Authorizer<U extends UserProfile>
Checks if an access is authorized.
|
class |
RequireAllPermissionsAuthorizer<U extends UserProfile>
Checks an access if the user profile has all the permissions.
|
class |
RequireAllRolesAuthorizer<U extends UserProfile>
Checks an access if the user profile has all the roles.
|
class |
RequireAnyPermissionAuthorizer<U extends UserProfile>
Checks an access if the user profile has any of the permissions.
|
class |
RequireAnyRoleAuthorizer<U extends UserProfile>
Checks an access if the user profile has any of the roles.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultAuthorizationChecker.isAuthorized(WebContext context,
UserProfile profile,
List<Authorizer> authorizers) |
boolean |
AuthorizationChecker.isAuthorized(WebContext context,
UserProfile profile,
List<Authorizer> authorizers) |
boolean |
DefaultAuthorizationChecker.isAuthorized(WebContext context,
UserProfile profile,
String authorizerName,
Map<String,Authorizer> authorizersMap) |
boolean |
AuthorizationChecker.isAuthorized(WebContext context,
UserProfile profile,
String authorizerName,
Map<String,Authorizer> authorizersMap) |
Modifier and Type | Interface and Description |
---|---|
interface |
Client<C extends Credentials,U extends UserProfile>
This interface is the core of
pac4j . |
Modifier and Type | Class and Description |
---|---|
class |
ProfileManager<U extends UserProfile>
This class is a generic way to manage the current user profile, i.e.
|
Modifier and Type | Class and Description |
---|---|
class |
CommonProfile
This class is the base implementation with the default attribute getters which can be retrieved for most profiles.
|
Modifier and Type | Method and Description |
---|---|
static UserProfile |
ProfileHelper.buildProfile(String typedId,
Map<String,Object> attributes)
Build a profile from a typed id and a map of attributes.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
ProfileHelper.isTypedIdOf(String id,
Class<? extends UserProfile> clazz)
Indicate if the user identifier matches this kind of profile.
|
Copyright © 2015. All Rights Reserved.