public class KerberosAuthenticator extends Object implements Authenticator
| Modifier and Type | Field and Description | 
|---|---|
static String | 
JAAS_CONFIG_ENTRY  | 
static String | 
SASL_PROTOCOL_NAME  | 
static String | 
SASL_PROTOCOL_NAME_PROPERTY  | 
static String[] | 
SUPPORTED_MECHANISMS  | 
| Constructor and Description | 
|---|
KerberosAuthenticator(InetSocketAddress host)  | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
evaluateChallenge(byte[] challenge)
Evaluate a challenge received from the Server. 
 | 
byte[] | 
initialResponse()
Obtain an initial response token for initializing the SASL handshake 
 | 
void | 
onAuthenticationSuccess(byte[] token)
Called when authentication is successful with the last information
 optionally sent by the server. 
 | 
public static final String JAAS_CONFIG_ENTRY
public static final String[] SUPPORTED_MECHANISMS
public static final String SASL_PROTOCOL_NAME
public static final String SASL_PROTOCOL_NAME_PROPERTY
public KerberosAuthenticator(InetSocketAddress host)
public byte[] initialResponse()
AuthenticatorinitialResponse in interface Authenticatorpublic byte[] evaluateChallenge(byte[] challenge)
AuthenticatorevaluateChallenge in interface Authenticatorchallenge - the server's SASL challengepublic void onAuthenticationSuccess(byte[] token)
AuthenticatoronAuthenticationSuccess in interface Authenticatortoken - the information sent by the server with the authentication
 successful message. This will be null if the server sends no
 particular information on authentication success.Copyright © 2012–2015. All rights reserved.