public class PrivilegedSaslClient extends Object
SaslClient, which performs necessary parts of
the authentication protocol as PrivilegedActions with the
assumed identity of the Subject supplied in the constructor.| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
DEFAULT_PROPERTIES |
| Constructor and Description |
|---|
PrivilegedSaslClient(Subject clientIdentity,
String[] mechanisms,
String authzId,
String protocol,
String hostname,
Map<String,String> properties,
CallbackHandler callbackHandler) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
evaluateChallenge(byte[] challenge)
Respond to server's SASL token
|
byte[] |
getInitialResponse()
Generate an initial token to start the SASL handshake with server.
|
boolean |
isComplete()
Is the SASL negotiation with the server complete
|
public byte[] getInitialResponse()
public byte[] evaluateChallenge(byte[] challenge)
challenge - contains server's SASL tokenpublic boolean isComplete()
Copyright © 2012–2015. All rights reserved.