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
,AuthenticationContextSaslClient
,PrivilegedSaslClient
public abstract class AbstractDelegatingSaslClient extends Object implements SaslClient, SaslWrapper
An abstract base forSaslClient
instances which delegate to anotherSaslClient
.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description protected SaslClient
delegate
The delegateSaslClient
.-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDelegatingSaslClient(SaslClient delegate)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
byte[]
evaluateChallenge(byte[] challenge)
String
getMechanismName()
Object
getNegotiatedProperty(String propName)
boolean
hasInitialResponse()
boolean
isComplete()
String
toString()
byte[]
unwrap(byte[] incoming, int offset, int len)
byte[]
wrap(byte[] outgoing, int offset, int len)
-
-
-
Field Detail
-
delegate
protected final SaslClient delegate
The delegateSaslClient
.
-
-
Constructor Detail
-
AbstractDelegatingSaslClient
protected AbstractDelegatingSaslClient(SaslClient delegate)
Construct a new instance.- Parameters:
delegate
- the SASL client to delegate to
-
-
Method Detail
-
getMechanismName
public String getMechanismName()
- Specified by:
getMechanismName
in interfaceSaslClient
-
hasInitialResponse
public boolean hasInitialResponse()
- Specified by:
hasInitialResponse
in interfaceSaslClient
-
evaluateChallenge
public byte[] evaluateChallenge(byte[] challenge) throws SaslException
- Specified by:
evaluateChallenge
in interfaceSaslClient
- Throws:
SaslException
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfaceSaslClient
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
- Specified by:
unwrap
in interfaceSaslClient
- Specified by:
unwrap
in interfaceSaslWrapper
- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
- Specified by:
wrap
in interfaceSaslClient
- Specified by:
wrap
in interfaceSaslWrapper
- Throws:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
- Specified by:
getNegotiatedProperty
in interfaceSaslClient
-
dispose
public void dispose() throws SaslException
- Specified by:
dispose
in interfaceSaslClient
- Throws:
SaslException
-
-