| Package | Description |
|---|---|
| org.pac4j.core.authorization | |
| org.pac4j.core.authorization.authorizer | |
| org.pac4j.core.authorization.authorizer.csrf | |
| 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 | Class and Description |
|---|---|
class |
AbstractRequireAllAuthorizer<E,U extends UserProfile>
An authorizer to require all the elements.
|
class |
AbstractRequireAnyAuthorizer<E,U extends UserProfile>
An authorizer to require any of the elements.
|
class |
AbstractRequireElementAuthorizer<E,U extends UserProfile>
An authorizer to require elements.
|
class |
CheckHttpMethodAuthorizer<U extends UserProfile>
Checks the HTTP method.
|
class |
CheckProfileTypeAuthorizer<U extends UserProfile>
Checks the profile type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
XSSProtectionHeader.isAuthorized(WebContext context,
UserProfile profile) |
boolean |
XFrameOptionsHeader.isAuthorized(WebContext context,
UserProfile profile) |
boolean |
XContentTypeOptionsHeader.isAuthorized(WebContext context,
UserProfile profile) |
boolean |
StrictTransportSecurityHeader.isAuthorized(WebContext context,
UserProfile profile) |
boolean |
CustomSecurityHeader.isAuthorized(WebContext context,
UserProfile profile) |
boolean |
CacheControlHeader.isAuthorized(WebContext context,
UserProfile profile) |
| Modifier and Type | Class and Description |
|---|---|
class |
CsrfAuthorizer<U extends UserProfile>
Authorizer that checks CSRF tokens.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
CsrfTokenGeneratorAuthorizer.isAuthorized(WebContext context,
UserProfile profile) |
| 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 © 2016. All Rights Reserved.