Class IsRememberedAuthorizer
java.lang.Object
org.pac4j.core.authorization.authorizer.ProfileAuthorizer
org.pac4j.core.authorization.authorizer.AbstractCheckAuthenticationAuthorizer
org.pac4j.core.authorization.authorizer.IsRememberedAuthorizer
- All Implemented Interfaces:
Authorizer
The user must be authenticated and remembered.
- Since:
- 1.9.0
- Author:
- Jerome Leleu
-
Constructor Summary
ConstructorDescriptionConstructor for IsRememberedAuthorizer.IsRememberedAuthorizer
(String redirectionUrl) Constructor for IsRememberedAuthorizer. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAuthorized
(WebContext context, SessionStore sessionStore, List<UserProfile> profiles) Checks if the user profiles and / or the current web context are authorized.boolean
isProfileAuthorized
(WebContext context, SessionStore sessionStore, UserProfile profile) Whether a specific profile is authorized.static IsRememberedAuthorizer
isRemembered.Methods inherited from class org.pac4j.core.authorization.authorizer.AbstractCheckAuthenticationAuthorizer
handleError
Methods inherited from class org.pac4j.core.authorization.authorizer.ProfileAuthorizer
isAllAuthorized, isAnyAuthorized
-
Constructor Details
-
IsRememberedAuthorizer
public IsRememberedAuthorizer()Constructor for IsRememberedAuthorizer.
-
IsRememberedAuthorizer
Constructor for IsRememberedAuthorizer.
- Parameters:
redirectionUrl
- aString
object
-
-
Method Details
-
isAuthorized
public boolean isAuthorized(WebContext context, SessionStore sessionStore, List<UserProfile> profiles) Checks if the user profiles and / or the current web context are authorized.- Parameters:
context
- the web contextsessionStore
- the session storeprofiles
- the user profiles- Returns:
- if the access is authorized
-
isProfileAuthorized
public boolean isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile) Whether a specific profile is authorized.- Specified by:
isProfileAuthorized
in classProfileAuthorizer
- Parameters:
context
- the web contextsessionStore
- the session storeprofile
- the user profile- Returns:
- whether a specific profile is authorized
-
isRemembered
isRemembered.
- Returns:
- a
IsRememberedAuthorizer
object
-