Package org.wildfly.security.sasl.util
Class AbstractDelegatingSaslClient
java.lang.Object
org.wildfly.security.sasl.util.AbstractDelegatingSaslClient
- All Implemented Interfaces:
SaslClient,SaslWrapper
- Direct Known Subclasses:
AuthenticationContextSaslClient,PrivilegedSaslClient
public abstract class AbstractDelegatingSaslClient
extends Object
implements SaslClient, SaslWrapper
An abstract base for
SaslClient instances which delegate to another SaslClient.- Author:
- David M. Lloyd
-
Field Summary
FieldsFields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDelegatingSaslClient(SaslClient delegate) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()byte[]evaluateChallenge(byte[] challenge) getNegotiatedProperty(String propName) booleanbooleantoString()byte[]unwrap(byte[] incoming, int offset, int len) byte[]wrap(byte[] outgoing, int offset, int len)
-
Field Details
-
delegate
The delegateSaslClient.
-
-
Constructor Details
-
AbstractDelegatingSaslClient
Construct a new instance.- Parameters:
delegate- the SASL client to delegate to
-
-
Method Details
-
getMechanismName
- Specified by:
getMechanismNamein interfaceSaslClient
-
hasInitialResponse
public boolean hasInitialResponse()- Specified by:
hasInitialResponsein interfaceSaslClient
-
evaluateChallenge
- Specified by:
evaluateChallengein interfaceSaslClient- Throws:
SaslException
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceSaslClient
-
unwrap
- Specified by:
unwrapin interfaceSaslClient- Specified by:
unwrapin interfaceSaslWrapper- Throws:
SaslException
-
wrap
- Specified by:
wrapin interfaceSaslClient- Specified by:
wrapin interfaceSaslWrapper- Throws:
SaslException
-
getNegotiatedProperty
- Specified by:
getNegotiatedPropertyin interfaceSaslClient
-
dispose
- Specified by:
disposein interfaceSaslClient- Throws:
SaslException
-
toString
-