public class AnonymousSASLMechanismHandler extends SASLMechanismHandler<AnonymousSASLMechanismHandlerCfg>
| Constructor and Description |
|---|
AnonymousSASLMechanismHandler()
Creates a new instance of this SASL mechanism handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finalizeSASLMechanismHandler()
Performs any finalization that may be necessary for this SASL
mechanism handler.
|
void |
initializeSASLMechanismHandler(AnonymousSASLMechanismHandlerCfg configuration)
Initializes this SASL mechanism handler based on the information
in the provided configuration entry.
|
boolean |
isPasswordBased(String mechanism)
Indicates whether the specified SASL mechanism is password-based
or uses some other form of credentials (e.g., an SSL client
certificate or Kerberos ticket).
|
boolean |
isSecure(String mechanism)
Indicates whether the specified 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).
|
void |
processSASLBind(BindOperation bindOperation)
Processes the SASL bind operation.
|
isConfigurationAcceptablepublic AnonymousSASLMechanismHandler()
initializeSASLMechanismHandler method.public void initializeSASLMechanismHandler(AnonymousSASLMechanismHandlerCfg configuration) throws ConfigException, InitializationException
SASLMechanismHandlerinitializeSASLMechanismHandler in class SASLMechanismHandler<AnonymousSASLMechanismHandlerCfg>configuration - The configuration to use to initialize
this SASL mechanism handler.ConfigException - If an unrecoverable problem arises in
the process of performing the
initialization.InitializationException - If a problem occurs during
initialization that is not
related to the server
configuration.public void finalizeSASLMechanismHandler()
SASLMechanismHandlerfinalizeSASLMechanismHandler in class SASLMechanismHandler<AnonymousSASLMechanismHandlerCfg>public void processSASLBind(BindOperation bindOperation)
SASLMechanismHandlerBindOperation.setResultCode method must be used
to set the appropriate result code.BindOperation.setSASLAuthUserEntry
method to provide it with the entry for the user that
attempted to authenticate.BindOperation.setAuthenticationInfo method must be
used to set the authentication info for the bind
operation.BindOperation.setAuthFailureReason method should be
used to provide a message explaining why the authentication
failed.processSASLBind in class SASLMechanismHandler<AnonymousSASLMechanismHandlerCfg>bindOperation - The SASL bind operation to be processed.public boolean isPasswordBased(String mechanism)
SASLMechanismHandlerisPasswordBased in class SASLMechanismHandler<AnonymousSASLMechanismHandlerCfg>mechanism - The name of the mechanism for which to make
the determination. This will only be invoked
with names of mechanisms for which this
handler has previously registered.true if this SASL mechanism is password-based,
or false if it uses some other form of
credentials.public boolean isSecure(String mechanism)
SASLMechanismHandlerisSecure in class SASLMechanismHandler<AnonymousSASLMechanismHandlerCfg>mechanism - The name of the mechanism for which to make
the determination. This will only be invoked
with names of mechanisms for which this
handler has previously registered.true if this SASL mechanism should be considered
secure, or false if not.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.