Package org.pac4j.cas.authorization
Class DefaultCasAuthorizationGenerator
- java.lang.Object
-
- org.pac4j.cas.authorization.DefaultCasAuthorizationGenerator
-
- All Implemented Interfaces:
AuthorizationGenerator
public class DefaultCasAuthorizationGenerator extends Object implements AuthorizationGenerator
DefaultAuthorizationGeneratorimplementation for aCasClientwhich is able to retrieve the isRemembered status from the CAS response and put it in the profile.- Since:
- 1.5.1
- Author:
- Michael Remond
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_REMEMBER_ME_ATTRIBUTE_NAMEprotected StringrememberMeAttributeName
-
Constructor Summary
Constructors Constructor Description DefaultCasAuthorizationGenerator()DefaultCasAuthorizationGenerator(String rememberMeAttributeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<UserProfile>generate(WebContext context, UserProfile profile)
-
-
-
Field Detail
-
DEFAULT_REMEMBER_ME_ATTRIBUTE_NAME
public static final String DEFAULT_REMEMBER_ME_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
rememberMeAttributeName
protected String rememberMeAttributeName
-
-
Constructor Detail
-
DefaultCasAuthorizationGenerator
public DefaultCasAuthorizationGenerator()
-
DefaultCasAuthorizationGenerator
public DefaultCasAuthorizationGenerator(String rememberMeAttributeName)
-
-
Method Detail
-
generate
public Optional<UserProfile> generate(WebContext context, UserProfile profile)
- Specified by:
generatein interfaceAuthorizationGenerator
-
-