Class SystemAuthenticationHandlerConfigImpl

java.lang.Object
com.pushtechnology.diffusion.api.internal.config.SystemAuthenticationHandlerConfigImpl
All Implemented Interfaces:
AuthenticationHandlerConfig, SystemAuthenticationHandlerConfig

@Immutable public final class SystemAuthenticationHandlerConfigImpl extends Object implements SystemAuthenticationHandlerConfig
Since:
6.0
  • Constructor Details

    • SystemAuthenticationHandlerConfigImpl

      public SystemAuthenticationHandlerConfigImpl()
      Default constructor used if no system authentication handler is configured.
    • SystemAuthenticationHandlerConfigImpl

      public SystemAuthenticationHandlerConfigImpl(String hashScheme)
      Constructor.
  • Method Details

    • getHashScheme

      public String getHashScheme()
      Description copied from interface: SystemAuthenticationHandlerConfig
      Returns the hash scheme used to store newly created passwords.

      More complex algorithms generate password hashes that are more expensive for an attacker to crack by brute force, but require more CPU for each authentication operation.

      The following schemes are supported:

      • "NONE";
      • "DESEDE";
      • "PBKDF-SHA1-N", where N is the number of iterations;
      • "PBKDF-SHA256-N", where N is the number of iterations.

      The default scheme is PBKDF-SHA256-1000. The configured scheme must be supported by the JVM or the server will not start. All of the above schemes are supported by the standard Java 8 JDK.

      Specified by:
      getHashScheme in interface SystemAuthenticationHandlerConfig