Class ScramSha512SASLMechanismHandler

    • Constructor Detail

      • ScramSha512SASLMechanismHandler

        public ScramSha512SASLMechanismHandler()
    • Method Detail

      • initializeSASLMechanismHandler

        public void initializeSASLMechanismHandler​(C cfg,
                                                   ServerContext serverContext)
                                            throws ConfigException
        Description copied from class: SASLMechanismHandler
        Initializes this SASL mechanism handler based on the information in the provided configuration entry. It should also register itself with the Directory Server for the particular kinds of SASL mechanisms that it will process.
        Specified by:
        initializeSASLMechanismHandler in class SASLMechanismHandler<C extends SaslMechanismHandlerCfg>
        Parameters:
        cfg - The configuration to use to initialize this SASL mechanism handler.
        serverContext - The server context
        Throws:
        ConfigException - If an unrecoverable problem arises in the process of performing the initialization.
      • isConfigurationChangeAcceptable

        public boolean isConfigurationChangeAcceptable​(C cfg,
                                                       List<LocalizableMessage> unacceptableReasons)
        Description copied from interface: ConfigurationChangeListener
        Indicates whether the proposed change to the configuration is acceptable to this change listener.
        Specified by:
        isConfigurationChangeAcceptable in interface ConfigurationChangeListener<C extends SaslMechanismHandlerCfg>
        Parameters:
        cfg - The new configuration containing the changes.
        unacceptableReasons - A list that can be used to hold messages about why the provided configuration is not acceptable.
        Returns:
        Returns true if the proposed change is acceptable, or false if it is not.
      • processSASLBind

        public void processSASLBind​(BindOperation bindOp)
        Description copied from class: SASLMechanismHandler
        Processes the SASL bind operation. SASL mechanism implementations must ensure that the following actions are taken during the processing of this method:
        • The BindOperation.setResultCode method must be used to set the appropriate result code.
        • If the SASL processing gets far enough to be able to map the request to a user entry (regardless of whether the authentication is ultimately successful), then this method must call the BindOperation.setSASLAuthUserEntry method to provide it with the entry for the user that attempted to authenticate.
        • If the bind processing was successful, then the BindOperation.setAuthenticationInfo method must be used to set the authentication info for the bind operation.
        • If the bind processing was not successful, then the BindOperation.setAuthFailureReason method should be used to provide a message explaining why the authentication failed.
        Specified by:
        processSASLBind in class SASLMechanismHandler<C extends SaslMechanismHandlerCfg>
        Parameters:
        bindOp - The SASL bind operation to be processed.
      • isPasswordBased

        public boolean isPasswordBased()
        Description copied from class: SASLMechanismHandler
        Indicates whether this SASL mechanism is password-based or uses some other form of credentials (e.g., an SSL client certificate or Kerberos ticket).
        Specified by:
        isPasswordBased in class SASLMechanismHandler<C extends SaslMechanismHandlerCfg>
        Returns:
        true if this SASL mechanism is password-based, or false if it uses some other form of credentials.
      • isSecure

        public boolean isSecure()
        Description copied from class: SASLMechanismHandler
        Indicates whether this SASL mechanism should be considered secure (i.e., it does not expose the authentication credentials in a manner that is useful to a third-party observer, and other aspects of the authentication are generally secure).
        Specified by:
        isSecure in class SASLMechanismHandler<C extends SaslMechanismHandlerCfg>
        Returns:
        true if this SASL mechanism should be considered secure, or false if not.