Package org.wildfly.security.sasl.gssapi
Class GssapiClient
- java.lang.Object
- 
- org.wildfly.security.sasl.util.AbstractSaslParticipant
- 
- org.wildfly.security.sasl.gssapi.AbstractGssapiMechanism
- 
- org.wildfly.security.sasl.gssapi.GssapiClient
 
 
 
- 
- All Implemented Interfaces:
- SaslClient,- SaslWrapper
 
 final class GssapiClient extends AbstractGssapiMechanism implements SaslClient SaslClient 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.AbstractGssapiMechanismAbstractGssapiMechanism.GssapiWrapper, AbstractGssapiMechanism.QOP
 
- 
 - 
Field SummaryFields Modifier and Type Field Description private StringauthorizationIdprivate static intCHALLENGE_RESPONSE_STATEprivate static intINITIAL_CHALLENGE_STATEprivate static intSECURITY_LAYER_NEGOTIATION_STATE- 
Fields inherited from class org.wildfly.security.sasl.gssapi.AbstractGssapiMechanismactualMaxReceiveBuffer, configuredMaxReceiveBuffer, DEFAULT_MAX_BUFFER_SIZE, gssContext, maxBuffer, orderedQops, relaxComplianceChecks, selectedQop
 - 
Fields inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipantCOMPLETE_STATE, FAILED_STATE, NO_BYTES
 - 
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapperIDENTITY
 
- 
 - 
Constructor SummaryConstructors Constructor Description GssapiClient(String protocol, String serverName, Map<String,?> props, CallbackHandler callbackHandler, String authorizationId)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static <T> TdoPrivileged(PrivilegedAction<T> action)byte[]evaluateChallenge(byte[] challenge)protected byte[]evaluateMessage(int state, byte[] message)private AbstractGssapiMechanism.QOPfindAgreeableQop(byte securityLayer)booleanhasInitialResponse()voidinit()private static byte[]initSecContext(GSSContext gssContext, byte[] inputBuf, int offset, int len)private booleanisCompatibleWithGssContext(AbstractGssapiMechanism.QOP qop)private booleanmayRequireSecurityLater(AbstractGssapiMechanism.QOP[] preferredQop)- 
Methods inherited from class org.wildfly.security.sasl.gssapi.AbstractGssapiMechanismdispose, getNegotiatedProperty, intToNetworkOrderBytes, networkOrderBytesToInt, parsePreferredQop
 - 
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipantassertComplete, evaluateMessage, getCallbackHandler, getIntProperty, getMechanismName, getProtocol, getServerName, getStringProperty, getWrapper, handleCallbacks, isComplete, negotiationComplete, setNegotiationState, setWrapper, tryHandleCallbacks, unwrap, wrap
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface javax.security.sasl.SaslClientdispose, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
 
- 
 
- 
- 
- 
Field Detail- 
INITIAL_CHALLENGE_STATEprivate static final int INITIAL_CHALLENGE_STATE - See Also:
- Constant Field Values
 
 - 
CHALLENGE_RESPONSE_STATEprivate static final int CHALLENGE_RESPONSE_STATE - See Also:
- Constant Field Values
 
 - 
SECURITY_LAYER_NEGOTIATION_STATEprivate static final int SECURITY_LAYER_NEGOTIATION_STATE - See Also:
- Constant Field Values
 
 - 
authorizationIdprivate final String authorizationId 
 
- 
 - 
Constructor Detail- 
GssapiClientGssapiClient(String protocol, String serverName, Map<String,?> props, CallbackHandler callbackHandler, String authorizationId) throws SaslException - Throws:
- SaslException
 
 
- 
 - 
Method Detail- 
mayRequireSecurityLaterprivate boolean mayRequireSecurityLater(AbstractGssapiMechanism.QOP[] preferredQop) 
 - 
findAgreeableQopprivate AbstractGssapiMechanism.QOP findAgreeableQop(byte securityLayer) throws SaslException - Throws:
- SaslException
 
 - 
isCompatibleWithGssContextprivate boolean isCompatibleWithGssContext(AbstractGssapiMechanism.QOP qop) 
 - 
initpublic void init() - Overrides:
- initin class- AbstractSaslParticipant
 
 - 
hasInitialResponsepublic boolean hasInitialResponse() - Specified by:
- hasInitialResponsein interface- SaslClient
 
 - 
evaluateChallengepublic byte[] evaluateChallenge(byte[] challenge) throws SaslException- Specified by:
- evaluateChallengein interface- SaslClient
- Throws:
- SaslException
 
 - 
evaluateMessageprotected byte[] evaluateMessage(int state, byte[] message) throws SaslException- Specified by:
- evaluateMessagein class- AbstractSaslParticipant
- Throws:
- SaslException
 
 - 
initSecContextprivate static byte[] initSecContext(GSSContext gssContext, byte[] inputBuf, int offset, int len) throws GSSException - Throws:
- GSSException
 
 - 
doPrivilegedprivate static <T> T doPrivileged(PrivilegedAction<T> action) 
 
- 
 
-