Package org.wildfly.security.sasl.entity
Class EntitySaslServer
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractSaslParticipant
-
- org.wildfly.security.sasl.util.AbstractSaslServer
-
- org.wildfly.security.sasl.entity.EntitySaslServer
-
- All Implemented Interfaces:
SaslServer
,SaslWrapper
final class EntitySaslServer extends AbstractSaslServer
SaslServer for the ISO/IEC 9798-3 authentication mechanism as defined by RFC 3163.- Author:
- Farah Juma
-
-
Field Summary
Fields Modifier and Type Field Description private String
authorizationID
private boolean
mutual
private byte[]
randomB
private SecureRandom
secureRandom
private String
serverName
private Signature
signature
private static int
ST_CHALLENGE
private static int
ST_PROCESS_RESPONSE
-
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 EntitySaslServer(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, boolean mutual, Signature signature, SecureRandom secureRandom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
evaluateMessage(int state, byte[] response)
String
getAuthorizationID()
void
init()
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslServer
evaluateResponse
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
assertComplete, dispose, evaluateMessage, getCallbackHandler, getIntProperty, getMechanismName, getNegotiatedProperty, 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, getNegotiatedProperty, isComplete, unwrap, wrap
-
-
-
-
Field Detail
-
ST_CHALLENGE
private static final int ST_CHALLENGE
- See Also:
- Constant Field Values
-
ST_PROCESS_RESPONSE
private static final int ST_PROCESS_RESPONSE
- See Also:
- Constant Field Values
-
secureRandom
private final SecureRandom secureRandom
-
signature
private final Signature signature
-
mutual
private final boolean mutual
-
serverName
private final String serverName
-
authorizationID
private String authorizationID
-
randomB
private byte[] randomB
-
-
Constructor Detail
-
EntitySaslServer
EntitySaslServer(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, boolean mutual, Signature signature, SecureRandom secureRandom)
-
-
Method Detail
-
init
public void init()
- Overrides:
init
in classAbstractSaslParticipant
-
getAuthorizationID
public String getAuthorizationID()
-
evaluateMessage
protected byte[] evaluateMessage(int state, byte[] response) throws SaslException
- Specified by:
evaluateMessage
in classAbstractSaslParticipant
- Throws:
SaslException
-
-