Class AuthenticationContextSaslServer
- java.lang.Object
- 
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServer
- 
- org.wildfly.security.sasl.auth.util.AuthenticationContextSaslServer
 
 
- 
- All Implemented Interfaces:
- SaslServer,- SaslWrapper
 
 public final class AuthenticationContextSaslServer extends AbstractDelegatingSaslServer A delegatingSaslServerwhich establishes a specificAuthenticationContextfor the duration of the authentication process.- Author:
- David M. Lloyd
 
- 
- 
Field SummaryFields Modifier and Type Field Description private AuthenticationContextcontextprivate org.wildfly.common.function.ExceptionUnaryOperator<byte[],SaslException>responseAction- 
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerdelegate
 - 
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapperIDENTITY
 
- 
 - 
Constructor SummaryConstructors Constructor Description AuthenticationContextSaslServer(SaslServer delegate)Construct a new instance.AuthenticationContextSaslServer(SaslServer delegate, AuthenticationContext context)Construct a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()byte[]evaluateResponse(byte[] response)- 
Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServergetAuthorizationID, getMechanismName, getNegotiatedProperty, isComplete, toString, unwrap, wrap
 
- 
 
- 
- 
- 
Field Detail- 
contextprivate AuthenticationContext context 
 - 
responseActionprivate org.wildfly.common.function.ExceptionUnaryOperator<byte[],SaslException> responseAction 
 
- 
 - 
Constructor Detail- 
AuthenticationContextSaslServerpublic AuthenticationContextSaslServer(SaslServer delegate, AuthenticationContext context) Construct a new instance.- Parameters:
- delegate- the delegate SASL server
- context- the authentication context to use
 
 - 
AuthenticationContextSaslServerpublic AuthenticationContextSaslServer(SaslServer delegate) Construct a new instance.- Parameters:
- delegate- the delegate SASL server
 
 
- 
 - 
Method Detail- 
evaluateResponsepublic byte[] evaluateResponse(byte[] response) throws SaslException- Specified by:
- evaluateResponsein interface- SaslServer
- Overrides:
- evaluateResponsein class- AbstractDelegatingSaslServer
- Throws:
- SaslException
 
 - 
disposepublic void dispose() throws SaslException- Specified by:
- disposein interface- SaslServer
- Overrides:
- disposein class- AbstractDelegatingSaslServer
- Throws:
- SaslException
 
 
- 
 
-