public class GssapiServer
extends java.lang.Object
implements javax.security.sasl.SaslServer
SaslServer to wrap calls to a realm GSSAPI sasl server.| Modifier and Type | Field and Description |
|---|---|
private SubjectIdentity |
identity |
private javax.security.sasl.SaslServer |
wrapped |
| Constructor and Description |
|---|
GssapiServer(SubjectIdentity identity,
javax.security.sasl.SaslServer toWrap) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
byte[] |
evaluateResponse(byte[] response) |
java.lang.String |
getAuthorizationID() |
java.lang.String |
getMechanismName() |
java.lang.Object |
getNegotiatedProperty(java.lang.String propName) |
private javax.security.auth.Subject |
getSubject() |
boolean |
isComplete() |
byte[] |
unwrap(byte[] incoming,
int offset,
int len) |
byte[] |
wrap(byte[] outgoing,
int offset,
int len) |
private SubjectIdentity identity
private final javax.security.sasl.SaslServer wrapped
GssapiServer(SubjectIdentity identity, javax.security.sasl.SaslServer toWrap)
public java.lang.String getMechanismName()
getMechanismName in interface javax.security.sasl.SaslServerpublic byte[] evaluateResponse(byte[] response)
throws javax.security.sasl.SaslException
evaluateResponse in interface javax.security.sasl.SaslServerjavax.security.sasl.SaslExceptionpublic boolean isComplete()
isComplete in interface javax.security.sasl.SaslServerpublic java.lang.String getAuthorizationID()
getAuthorizationID in interface javax.security.sasl.SaslServerpublic byte[] unwrap(byte[] incoming,
int offset,
int len)
throws javax.security.sasl.SaslException
unwrap in interface javax.security.sasl.SaslServerjavax.security.sasl.SaslExceptionpublic byte[] wrap(byte[] outgoing,
int offset,
int len)
throws javax.security.sasl.SaslException
wrap in interface javax.security.sasl.SaslServerjavax.security.sasl.SaslExceptionpublic java.lang.Object getNegotiatedProperty(java.lang.String propName)
getNegotiatedProperty in interface javax.security.sasl.SaslServerpublic void dispose()
throws javax.security.sasl.SaslException
dispose in interface javax.security.sasl.SaslServerjavax.security.sasl.SaslExceptionprivate javax.security.auth.Subject getSubject()
throws javax.security.sasl.SaslException
javax.security.sasl.SaslException