Class DefaultCasAuthorizationGenerator

java.lang.Object
org.pac4j.cas.authorization.DefaultCasAuthorizationGenerator
All Implemented Interfaces:
org.pac4j.core.authorization.generator.AuthorizationGenerator

public class DefaultCasAuthorizationGenerator extends Object implements org.pac4j.core.authorization.generator.AuthorizationGenerator
Default AuthorizationGenerator implementation for a CasClient which 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 Details

    • DEFAULT_REMEMBER_ME_ATTRIBUTE_NAME

      public static final String DEFAULT_REMEMBER_ME_ATTRIBUTE_NAME
      Constant DEFAULT_REMEMBER_ME_ATTRIBUTE_NAME="longTermAuthenticationRequestTokenUsed"
      See Also:
    • rememberMeAttributeName

      protected String rememberMeAttributeName
  • Constructor Details

    • DefaultCasAuthorizationGenerator

      public DefaultCasAuthorizationGenerator()

      Constructor for DefaultCasAuthorizationGenerator.

    • DefaultCasAuthorizationGenerator

      public DefaultCasAuthorizationGenerator(String rememberMeAttributeName)

      Constructor for DefaultCasAuthorizationGenerator.

      Parameters:
      rememberMeAttributeName - a String object
  • Method Details

    • generate

      public Optional<org.pac4j.core.profile.UserProfile> generate(org.pac4j.core.context.CallContext ctx, org.pac4j.core.profile.UserProfile profile)
      Specified by:
      generate in interface org.pac4j.core.authorization.generator.AuthorizationGenerator