Package org.wildfly.security.sasl.gssapi
Class GssapiServer
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractSaslParticipant
-
- org.wildfly.security.sasl.gssapi.AbstractGssapiMechanism
-
- org.wildfly.security.sasl.gssapi.GssapiServer
-
- All Implemented Interfaces:
SaslServer
,SaslWrapper
final class GssapiServer extends AbstractGssapiMechanism implements SaslServer
SaslServer for the GSSAPI mechanism as defined by RFC 4752- Author:
- Darran Lofthouse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.wildfly.security.sasl.gssapi.AbstractGssapiMechanism
AbstractGssapiMechanism.GssapiWrapper, AbstractGssapiMechanism.QOP
-
-
Field Summary
Fields Modifier and Type Field Description private static int
ACCEPTOR_STATE
private String
authorizationId
private String
boundServerName
private byte
offeredSecurityLayer
private static int
SECURITY_LAYER_ADVERTISER
private static int
SECURITY_LAYER_RECEIVER
-
Fields inherited from class org.wildfly.security.sasl.gssapi.AbstractGssapiMechanism
actualMaxReceiveBuffer, configuredMaxReceiveBuffer, DEFAULT_MAX_BUFFER_SIZE, gssContext, maxBuffer, orderedQops, relaxComplianceChecks, selectedQop
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
COMPLETE_STATE, FAILED_STATE, NO_BYTES
-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description GssapiServer(String protocol, String serverName, Map<String,?> props, CallbackHandler callbackHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
evaluateMessage(int state, byte[] message)
byte[]
evaluateResponse(byte[] response)
String
getAuthorizationID()
Object
getNegotiatedProperty(String propName)
Get a property negotiated between this participant and the other.void
init()
-
Methods inherited from class org.wildfly.security.sasl.gssapi.AbstractGssapiMechanism
dispose, intToNetworkOrderBytes, networkOrderBytesToInt, parsePreferredQop
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
assertComplete, evaluateMessage, getCallbackHandler, getIntProperty, getMechanismName, getProtocol, getServerName, getStringProperty, getWrapper, handleCallbacks, isComplete, negotiationComplete, setNegotiationState, setWrapper, tryHandleCallbacks, unwrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.sasl.SaslServer
dispose, getMechanismName, isComplete, unwrap, wrap
-
-
-
-
Field Detail
-
ACCEPTOR_STATE
private static final int ACCEPTOR_STATE
- See Also:
- Constant Field Values
-
SECURITY_LAYER_ADVERTISER
private static final int SECURITY_LAYER_ADVERTISER
- See Also:
- Constant Field Values
-
SECURITY_LAYER_RECEIVER
private static final int SECURITY_LAYER_RECEIVER
- See Also:
- Constant Field Values
-
authorizationId
private String authorizationId
-
boundServerName
private String boundServerName
-
offeredSecurityLayer
private byte offeredSecurityLayer
-
-
Constructor Detail
-
GssapiServer
GssapiServer(String protocol, String serverName, Map<String,?> props, CallbackHandler callbackHandler) throws SaslException
- Throws:
SaslException
-
-
Method Detail
-
init
public void init()
- Overrides:
init
in classAbstractSaslParticipant
-
getAuthorizationID
public String getAuthorizationID()
- Specified by:
getAuthorizationID
in interfaceSaslServer
-
evaluateResponse
public byte[] evaluateResponse(byte[] response) throws SaslException
- Specified by:
evaluateResponse
in interfaceSaslServer
- Throws:
SaslException
-
evaluateMessage
protected byte[] evaluateMessage(int state, byte[] message) throws SaslException
- Specified by:
evaluateMessage
in classAbstractSaslParticipant
- Throws:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
Description copied from class:AbstractSaslParticipant
Get a property negotiated between this participant and the other.- Specified by:
getNegotiatedProperty
in interfaceSaslServer
- Overrides:
getNegotiatedProperty
in classAbstractGssapiMechanism
- Parameters:
propName
- the property name- Returns:
- the property value or
null
if not defined
-
-