public interface IAuthenticator
Modifier and Type | Interface and Description |
---|---|
static interface |
IAuthenticator.SaslNegotiator
Performs the actual SASL negotiation for a single authentication attempt.
|
Modifier and Type | Method and Description |
---|---|
AuthenticatedUser |
legacyAuthenticate(java.util.Map<java.lang.String,java.lang.String> credentials)
A legacy method that is still used by JMX authentication.
|
IAuthenticator.SaslNegotiator |
newSaslNegotiator(java.net.InetAddress clientAddress)
Provide a SASL handler to perform authentication for an single connection.
|
default IAuthenticator.SaslNegotiator |
newSaslNegotiator(java.net.InetAddress clientAddress,
javax.security.cert.X509Certificate[] certificates)
Provide a SASL handler to perform authentication for an single connection.
|
java.util.Set<? extends IResource> |
protectedResources()
Set of resources that should be made inaccessible to users and only accessible internally.
|
boolean |
requireAuthentication()
Whether or not the authenticator requires explicit login.
|
void |
setup()
Setup is called once upon system startup to initialize the IAuthenticator.
|
void |
validateConfiguration()
Validates configuration of IAuthenticator implementation (if configurable).
|
boolean requireAuthentication()
java.util.Set<? extends IResource> protectedResources()
void validateConfiguration() throws ConfigurationException
ConfigurationException
- when there is a configuration error.void setup()
IAuthenticator.SaslNegotiator newSaslNegotiator(java.net.InetAddress clientAddress)
clientAddress
- the IP address of the client whom we wish to authenticate, or null
if an internal client (one not connected over the remote transport).PasswordAuthenticator.PlainTextSaslAuthenticator
)default IAuthenticator.SaslNegotiator newSaslNegotiator(java.net.InetAddress clientAddress, javax.security.cert.X509Certificate[] certificates)
clientAddress
- the IP address of the client whom we wish to authenticate, or null
if an internal client (one not connected over the remote transport).certificates
- the peer's X509 Certificate chain, if present.PasswordAuthenticator.PlainTextSaslAuthenticator
)AuthenticatedUser legacyAuthenticate(java.util.Map<java.lang.String,java.lang.String> credentials) throws AuthenticationException
credentials
- implementation specific key/value pairsAuthenticationException
Copyright © 2009-2021 The Apache Software Foundation