public class Krb5Authenticator extends Object implements Authenticator
Authenticator
This authenticator authenticates and autorizes all clients with a valid service ticket.Authenticator.SaslNegotiator
Constructor and Description |
---|
Krb5Authenticator() |
Modifier and Type | Method and Description |
---|---|
AuthenticatedUser |
authenticate(Map<String,String> credentials)
A "standard" authentication implementation that can be used more generically without SASL support.
|
Authenticator.SaslNegotiator |
newSaslNegotiator(InetAddress remoteAddress)
Provide a SASL handler to perform authentication for an single connection.
|
boolean |
requireAuthentication()
Whether or not the authenticator requires explicit login.
|
void |
setup(Map<String,Object> config)
Called once on server startup with the authentication.config from the *.yaml file
|
public boolean requireAuthentication()
Authenticator
requireAuthentication
in interface Authenticator
public void setup(Map<String,Object> config)
setup
in interface Authenticator
public Authenticator.SaslNegotiator newSaslNegotiator(InetAddress remoteAddress)
Authenticator
newSaslNegotiator
in interface Authenticator
remoteAddress
- the IP address of the client to authenticate to authenticate or null if an internal
client (one not connected over the remote transport).public AuthenticatedUser authenticate(Map<String,String> credentials) throws AuthenticationException
Authenticator
Channelizer
doesn't support SASL directly (like basic
HTTP authentication).authenticate
in interface Authenticator
AuthenticationException
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.