Class MongoDbAuthenticationProperties

All Implemented Interfaces:
Serializable, CasFeatureModule

@RequiresModule(name="cas-server-support-mongo") public class MongoDbAuthenticationProperties extends SingleCollectionMongoDbProperties
Since:
5.0.0
See Also:
  • Constructor Details

    • MongoDbAuthenticationProperties

      public MongoDbAuthenticationProperties()
  • Method Details

    • getAttributes

      public String getAttributes()
      Attributes to fetch from Mongo (blank by default to force the pac4j legacy behavior).
    • getUsernameAttribute

      public String getUsernameAttribute()
      Attributes that holds the username.
    • getPasswordAttribute

      public String getPasswordAttribute()
      Attribute that holds the password.
    • getPrincipalIdAttribute

      public String getPrincipalIdAttribute()
      Attribute that would be used to establish the authenticated profile.
    • getPasswordEncoder

      public PasswordEncoderProperties getPasswordEncoder()
      Password encoder settings for the authentication handler.
    • getPrincipalTransformation

      public PrincipalTransformationProperties getPrincipalTransformation()
      This is principal transformation properties.
    • getName

      public String getName()
      Name of the authentication handler.
    • getOrder

      public int getOrder()
      Order of authentication handler in chain.
    • setAttributes

      public MongoDbAuthenticationProperties setAttributes(String attributes)
      Attributes to fetch from Mongo (blank by default to force the pac4j legacy behavior).
      Returns:
      this.
    • setUsernameAttribute

      public MongoDbAuthenticationProperties setUsernameAttribute(String usernameAttribute)
      Attributes that holds the username.
      Returns:
      this.
    • setPasswordAttribute

      public MongoDbAuthenticationProperties setPasswordAttribute(String passwordAttribute)
      Attribute that holds the password.
      Returns:
      this.
    • setPrincipalIdAttribute

      public MongoDbAuthenticationProperties setPrincipalIdAttribute(String principalIdAttribute)
      Attribute that would be used to establish the authenticated profile.
      Returns:
      this.
    • setPasswordEncoder

      public MongoDbAuthenticationProperties setPasswordEncoder(PasswordEncoderProperties passwordEncoder)
      Password encoder settings for the authentication handler.
      Returns:
      this.
    • setPrincipalTransformation

      public MongoDbAuthenticationProperties setPrincipalTransformation(PrincipalTransformationProperties principalTransformation)
      This is principal transformation properties.
      Returns:
      this.
    • setName

      public MongoDbAuthenticationProperties setName(String name)
      Name of the authentication handler.
      Returns:
      this.
    • setOrder

      public MongoDbAuthenticationProperties setOrder(int order)
      Order of authentication handler in chain.
      Returns:
      this.