Class JdbcAuthenticationProperties

java.lang.Object
org.apereo.cas.configuration.model.support.jdbc.JdbcAuthenticationProperties
All Implemented Interfaces:
Serializable

@RequiresModule(name="cas-server-support-jdbc-authentication") public class JdbcAuthenticationProperties extends Object implements Serializable
Since:
5.0.0
See Also:
  • Constructor Details

    • JdbcAuthenticationProperties

      public JdbcAuthenticationProperties()
  • Method Details

    • getSearch

      Settings related to search-mode jdbc authentication. Searches for a user record by querying against a username and password; the user is authenticated if at least one result is found.
    • getEncode

      Settings related to query-encode-mode jdbc authentication. A JDBC querying handler that will pull back the password and the private salt value for a user and validate the encoded password using the public salt value. Assumes everything is inside the same database table. Supports settings for number of iterations as well as private salt. This password encoding method combines the private Salt and the public salt which it prepends to the password before hashing. If multiple iterations are used, the byte code hash of the first iteration is rehashed without the salt values. The final hash is converted to hex before comparing it to the database value.
    • getQuery

      Settings related to query-mode jdbc authentication. Authenticates a user by comparing the user password (which can be encoded with a password encoder) against the password on record determined by a configurable database query.
    • getBind

      Settings related to bind-mode jdbc authentication. Authenticates a user by attempting to create a database connection using the username and (hashed) password.
    • setSearch

      Settings related to search-mode jdbc authentication. Searches for a user record by querying against a username and password; the user is authenticated if at least one result is found.
      Returns:
      this.
    • setEncode

      Settings related to query-encode-mode jdbc authentication. A JDBC querying handler that will pull back the password and the private salt value for a user and validate the encoded password using the public salt value. Assumes everything is inside the same database table. Supports settings for number of iterations as well as private salt. This password encoding method combines the private Salt and the public salt which it prepends to the password before hashing. If multiple iterations are used, the byte code hash of the first iteration is rehashed without the salt values. The final hash is converted to hex before comparing it to the database value.
      Returns:
      this.
    • setQuery

      Settings related to query-mode jdbc authentication. Authenticates a user by comparing the user password (which can be encoded with a password encoder) against the password on record determined by a configurable database query.
      Returns:
      this.
    • setBind

      Settings related to bind-mode jdbc authentication. Authenticates a user by attempting to create a database connection using the username and (hashed) password.
      Returns:
      this.