Uses of Interface
org.pac4j.core.profile.UserProfile
-
-
Uses of UserProfile in org.pac4j.core.authorization.authorizer
Classes in org.pac4j.core.authorization.authorizer with type parameters of type UserProfile Modifier and Type Class Description class
AbstractCheckAuthenticationAuthorizer<U extends UserProfile>
Check the authentication of the user.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
AndAuthorizer<U extends UserProfile>
The conjunction of authorizers.interface
Authorizer<U extends UserProfile>
Checks if an access is authorized.class
CheckProfileTypeAuthorizer<U extends UserProfile>
Checks the profile type.class
IsAnonymousAuthorizer<U extends UserProfile>
The user must be anonymous.class
IsAuthenticatedAuthorizer<U extends UserProfile>
The user must be authenticated.class
IsFullyAuthenticatedAuthorizer<U extends UserProfile>
The user must be fully authenticated (not remembered).class
IsRememberedAuthorizer<U extends UserProfile>
The user must be authenticated and remembered.class
OrAuthorizer<U extends UserProfile>
The disjunction of authorizers.class
ProfileAuthorizer<U extends UserProfile>
Authorizer which is valid if one of the profiles is authorized or all the profiles are 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
RequireAnyAttributeAuthorizer<U extends UserProfile>
This isRequireAnyAttributeAuthorizer
which checks profile attributes for the specified element, and optionally may pattern-check the configured value.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.Methods in org.pac4j.core.authorization.authorizer with type parameters of type UserProfile Modifier and Type Method Description static <U extends UserProfile>
Authorizer<U>AndAuthorizer. and(Authorizer<U>... authorizers)
static <U extends UserProfile>
CheckProfileTypeAuthorizer<U>CheckProfileTypeAuthorizer. checkProfileType(Class<U>... types)
static <U extends UserProfile>
CheckProfileTypeAuthorizer<U>CheckProfileTypeAuthorizer. checkProfileType(List<Class<U>> types)
static <U extends UserProfile>
CheckProfileTypeAuthorizer<U>CheckProfileTypeAuthorizer. checkProfileType(Set<Class<U>> types)
static <U extends UserProfile>
IsAnonymousAuthorizer<U>IsAnonymousAuthorizer. isAnonymous()
static <U extends UserProfile>
IsAuthenticatedAuthorizer<U>IsAuthenticatedAuthorizer. isAuthenticated()
static <U extends UserProfile>
IsFullyAuthenticatedAuthorizer<U>IsFullyAuthenticatedAuthorizer. isFullyAuthenticated()
static <U extends UserProfile>
IsRememberedAuthorizer<U>IsRememberedAuthorizer. isRemembered()
static <U extends UserProfile>
OrAuthorizer<U>OrAuthorizer. or(Authorizer<U>... authorizers)
static <U extends UserProfile>
RequireAllPermissionsAuthorizer<U>RequireAllPermissionsAuthorizer. requireAllPermissions(String... permissions)
static <U extends UserProfile>
RequireAllPermissionsAuthorizer<U>RequireAllPermissionsAuthorizer. requireAllPermissions(List<String> permissions)
static <U extends UserProfile>
RequireAllPermissionsAuthorizer<U>RequireAllPermissionsAuthorizer. requireAllPermissions(Set<String> permissions)
static <U extends UserProfile>
RequireAllRolesAuthorizer<U>RequireAllRolesAuthorizer. requireAllRoles(String... roles)
static <U extends UserProfile>
RequireAllRolesAuthorizer<U>RequireAllRolesAuthorizer. requireAllRoles(List<String> roles)
static <U extends UserProfile>
RequireAllRolesAuthorizer<U>RequireAllRolesAuthorizer. requireAllRoles(Set<String> roles)
static <U extends UserProfile>
RequireAnyAttributeAuthorizer<U>RequireAnyAttributeAuthorizer. requireAnyAttribute(String valueToMatch)
static <U extends UserProfile>
RequireAnyPermissionAuthorizer<U>RequireAnyPermissionAuthorizer. requireAnyPermission(String... permissions)
static <U extends UserProfile>
RequireAnyPermissionAuthorizer<U>RequireAnyPermissionAuthorizer. requireAnyPermission(List<String> permissions)
static <U extends UserProfile>
RequireAnyPermissionAuthorizer<U>RequireAnyPermissionAuthorizer. requireAnyPermission(Set<String> permissions)
static <U extends UserProfile>
RequireAnyRoleAuthorizer<U>RequireAnyRoleAuthorizer. requireAnyRole(String... roles)
static <U extends UserProfile>
RequireAnyRoleAuthorizer<U>RequireAnyRoleAuthorizer. requireAnyRole(List<String> roles)
static <U extends UserProfile>
RequireAnyRoleAuthorizer<U>RequireAnyRoleAuthorizer. requireAnyRole(Set<String> roles)
Methods in org.pac4j.core.authorization.authorizer with parameters of type UserProfile Modifier and Type Method Description protected boolean
CheckHttpMethodAuthorizer. check(WebContext context, UserProfile profile, HttpConstants.HTTP_METHOD element)
Method parameters in org.pac4j.core.authorization.authorizer with type arguments of type UserProfile Modifier and Type Method Description boolean
CacheControlHeader. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
CorsAuthorizer. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
StrictTransportSecurityHeader. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
XContentTypeOptionsHeader. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
XFrameOptionsHeader. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
XSSProtectionHeader. isAuthorized(WebContext context, List<UserProfile> profiles)
-
Uses of UserProfile in org.pac4j.core.authorization.authorizer.csrf
Method parameters in org.pac4j.core.authorization.authorizer.csrf with type arguments of type UserProfile Modifier and Type Method Description boolean
CsrfAuthorizer. isAuthorized(WebContext context, List<UserProfile> profiles)
boolean
CsrfTokenGeneratorAuthorizer. isAuthorized(WebContext context, List<UserProfile> profiles)
-
Uses of UserProfile in org.pac4j.core.authorization.checker
Method parameters in org.pac4j.core.authorization.checker with type arguments of type UserProfile Modifier and Type Method Description boolean
AuthorizationChecker. isAuthorized(WebContext context, List<UserProfile> profiles, String authorizerNames, Map<String,Authorizer> authorizersMap)
Check whether the user is authorized.boolean
DefaultAuthorizationChecker. isAuthorized(WebContext context, List<UserProfile> profiles, String authorizersValue, Map<String,Authorizer> authorizersMap)
protected boolean
DefaultAuthorizationChecker. isAuthorized(WebContext context, List<UserProfile> profiles, List<Authorizer> authorizers)
-
Uses of UserProfile in org.pac4j.core.authorization.generator
Methods in org.pac4j.core.authorization.generator that return types with arguments of type UserProfile Modifier and Type Method Description Optional<UserProfile>
AuthorizationGenerator. generate(WebContext context, UserProfile profile)
Generate the authorization information from and for the user profile.Optional<UserProfile>
DefaultRolesPermissionsAuthorizationGenerator. generate(WebContext context, UserProfile profile)
Optional<UserProfile>
FromAttributesAuthorizationGenerator. generate(WebContext context, UserProfile profile)
Optional<UserProfile>
LoadLinkedUserAuthorizationGenerator. generate(WebContext context, UserProfile profile)
Optional<UserProfile>
SpringSecurityPropertiesAuthorizationGenerator. generate(WebContext context, UserProfile profile)
Methods in org.pac4j.core.authorization.generator with parameters of type UserProfile Modifier and Type Method Description Optional<UserProfile>
AuthorizationGenerator. generate(WebContext context, UserProfile profile)
Generate the authorization information from and for the user profile.Optional<UserProfile>
DefaultRolesPermissionsAuthorizationGenerator. generate(WebContext context, UserProfile profile)
Optional<UserProfile>
FromAttributesAuthorizationGenerator. generate(WebContext context, UserProfile profile)
Optional<UserProfile>
LoadLinkedUserAuthorizationGenerator. generate(WebContext context, UserProfile profile)
Optional<UserProfile>
SpringSecurityPropertiesAuthorizationGenerator. generate(WebContext context, UserProfile profile)
-
Uses of UserProfile in org.pac4j.core.client
Methods in org.pac4j.core.client that return types with arguments of type UserProfile Modifier and Type Method Description Optional<UserProfile>
BaseClient. getUserProfile(C credentials, WebContext context)
Optional<UserProfile>
Client. getUserProfile(C credentials, WebContext context)
Get the user profile based on the provided credentials.Optional<UserProfile>
BaseClient. renewUserProfile(UserProfile profile, WebContext context)
Optional<UserProfile>
Client. renewUserProfile(UserProfile profile, WebContext context)
Renew the user profile.protected Optional<UserProfile>
BaseClient. retrieveUserProfile(C credentials, WebContext context)
Retrieve a user profile.Methods in org.pac4j.core.client with parameters of type UserProfile Modifier and Type Method Description Optional<RedirectionAction>
Client. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Return the logout action (indirect clients).Optional<RedirectionAction>
DirectClient. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Optional<RedirectionAction>
IndirectClient. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Optional<UserProfile>
BaseClient. renewUserProfile(UserProfile profile, WebContext context)
Optional<UserProfile>
Client. renewUserProfile(UserProfile profile, WebContext context)
Renew the user profile. -
Uses of UserProfile in org.pac4j.core.engine
Methods in org.pac4j.core.engine with parameters of type UserProfile Modifier and Type Method Description protected void
DefaultCallbackLogic. saveUserProfile(C context, Config config, UserProfile profile, boolean saveInSession, boolean multiProfile, boolean renewSession)
Method parameters in org.pac4j.core.engine with type arguments of type UserProfile Modifier and Type Method Description R
SecurityGrantedAccessAdapter. adapt(C context, Collection<UserProfile> profiles, Object... parameters)
Adapt the current successful action as the expected result. -
Uses of UserProfile in org.pac4j.core.engine.decision
Methods in org.pac4j.core.engine.decision with parameters of type UserProfile Modifier and Type Method Description boolean
AlwaysUseSessionProfileStorageDecision. mustSaveProfileInSession(C context, List<Client> currentClients, DirectClient directClient, UserProfile profile)
boolean
DefaultProfileStorageDecision. mustSaveProfileInSession(C context, List<Client> currentClients, DirectClient directClient, UserProfile profile)
Never save the profile in session after a direct client authentication.boolean
ProfileStorageDecision. mustSaveProfileInSession(C context, List<Client> currentClients, DirectClient directClient, UserProfile profile)
Whether we must save the profile in session after the authentication of direct clients. -
Uses of UserProfile in org.pac4j.core.logout
Methods in org.pac4j.core.logout with parameters of type UserProfile Modifier and Type Method Description Optional<RedirectionAction>
CasLogoutActionBuilder. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Optional<RedirectionAction>
GoogleLogoutActionBuilder. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Optional<RedirectionAction>
LogoutActionBuilder. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
Return theRedirectionAction
for logout.Optional<RedirectionAction>
NoLogoutActionBuilder. getLogoutAction(WebContext context, UserProfile currentProfile, String targetUrl)
-
Uses of UserProfile in org.pac4j.core.profile
Classes in org.pac4j.core.profile with type parameters of type UserProfile Modifier and Type Class Description class
ProfileManager<U extends UserProfile>
This class is a generic way to manage the current user profile(s), i.e. the one(s) of the current authenticated user.Classes in org.pac4j.core.profile that implement UserProfile Modifier and Type Class Description class
AnonymousProfile
Anonymous profile.class
BasicUserProfile
This class is the user profile retrieved from a provider after successful authentication: it's an identifier (string) and attributes (objects).class
CommonProfile
This class is the base implementation with the default attribute getters which can be retrieved for most profiles.Methods in org.pac4j.core.profile with type parameters of type UserProfile Modifier and Type Method Description static <U extends UserProfile>
List<U>ProfileHelper. flatIntoAProfileList(Map<String,U> profiles)
Flat the map of profiles into a list of profiles.static <U extends UserProfile>
Optional<U>ProfileHelper. flatIntoOneProfile(Collection<U> profiles)
Flat the list of profiles into a single optional profile (skip any anonymous profile unless it's the only one).Constructors in org.pac4j.core.profile with parameters of type UserProfile Constructor Description Pac4JPrincipal(UserProfile profile)
-
Uses of UserProfile in org.pac4j.core.profile.creator
Methods in org.pac4j.core.profile.creator that return types with arguments of type UserProfile Modifier and Type Method Description Optional<UserProfile>
AuthenticatorProfileCreator. create(C credentials, WebContext context)
Optional<UserProfile>
ProfileCreator. create(C credentials, WebContext context)
Create a profile from a credentials. -
Uses of UserProfile in org.pac4j.core.profile.jwt
Classes in org.pac4j.core.profile.jwt that implement UserProfile Modifier and Type Class Description class
AbstractJwtProfile
Abstract JWT profile.
-