Class BaseJdbcAuthenticationProperties

java.lang.Object
org.apereo.cas.configuration.model.support.jpa.AbstractJpaProperties
org.apereo.cas.configuration.model.support.jdbc.authn.BaseJdbcAuthenticationProperties
All Implemented Interfaces:
Serializable, CasFeatureModule
Direct Known Subclasses:
BindJdbcAuthenticationProperties, QueryEncodeJdbcAuthenticationProperties, QueryJdbcAuthenticationProperties, SearchJdbcAuthenticationProperties

@RequiresModule(name="cas-server-support-jdbc-authentication") public abstract class BaseJdbcAuthenticationProperties extends AbstractJpaProperties
Since:
6.0.0
See Also:
  • Constructor Details

    • BaseJdbcAuthenticationProperties

      public BaseJdbcAuthenticationProperties()
  • Method Details

    • getCredentialCriteria

      public String getCredentialCriteria()
      A number of authentication handlers are allowed to determine whether they can operate on the provided credential and as such lend themselves to be tried and tested during the authentication handler selection phase. The credential criteria may be one of the following options:
      • 1) A regular expression pattern that is tested against the credential identifier.
      • 2) A fully qualified class name of your own design that implements Predicate.
      • 3) Path to an external Groovy script that implements the same interface.
    • getPrincipalTransformation

      public PrincipalTransformationProperties getPrincipalTransformation()
      Principal transformation settings for this authentication.
    • getPasswordEncoder

      public PasswordEncoderProperties getPasswordEncoder()
      Password encoding strategies for this authentication.
    • getName

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

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

      public AuthenticationHandlerStates getState()
      Define the scope and state of this authentication handler and the lifecycle in which it can be invoked or activated.
    • getPrincipalAttributeList

      public List<String> getPrincipalAttributeList()
      List of column names to fetch as user attributes. This is only effective in scenarios where the JDBC authentication method is able to execute a SQL query against a database table and return results. Authentication methods that merely check for the user account's existence or verify the user with just a simple bind are not able to fetch attributes.

      Attributes name are separated by a comma and may use a "directed list" syntax where the allowed syntax would be column-name->cas-attribute.

    • setCredentialCriteria

      public BaseJdbcAuthenticationProperties setCredentialCriteria(String credentialCriteria)
      A number of authentication handlers are allowed to determine whether they can operate on the provided credential and as such lend themselves to be tried and tested during the authentication handler selection phase. The credential criteria may be one of the following options:
      • 1) A regular expression pattern that is tested against the credential identifier.
      • 2) A fully qualified class name of your own design that implements Predicate.
      • 3) Path to an external Groovy script that implements the same interface.
      Returns:
      this.
    • setPrincipalTransformation

      public BaseJdbcAuthenticationProperties setPrincipalTransformation(PrincipalTransformationProperties principalTransformation)
      Principal transformation settings for this authentication.
      Returns:
      this.
    • setPasswordEncoder

      public BaseJdbcAuthenticationProperties setPasswordEncoder(PasswordEncoderProperties passwordEncoder)
      Password encoding strategies for this authentication.
      Returns:
      this.
    • setName

      Name of the authentication handler.
      Returns:
      this.
    • setOrder

      public BaseJdbcAuthenticationProperties setOrder(int order)
      Order of the authentication handler in the chain.
      Returns:
      this.
    • setState

      Define the scope and state of this authentication handler and the lifecycle in which it can be invoked or activated.
      Returns:
      this.
    • setPrincipalAttributeList

      public BaseJdbcAuthenticationProperties setPrincipalAttributeList(List<String> principalAttributeList)
      List of column names to fetch as user attributes. This is only effective in scenarios where the JDBC authentication method is able to execute a SQL query against a database table and return results. Authentication methods that merely check for the user account's existence or verify the user with just a simple bind are not able to fetch attributes.

      Attributes name are separated by a comma and may use a "directed list" syntax where the allowed syntax would be column-name->cas-attribute.

      Returns:
      this.