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 forSaslClientinstances which delegate to anotherSaslClient.- Author:
 - David M. Lloyd
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected SaslClientdelegateThe delegateSaslClient.- 
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDelegatingSaslClient(SaslClient delegate)Construct a new instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()byte[]evaluateChallenge(byte[] challenge)StringgetMechanismName()ObjectgetNegotiatedProperty(String propName)booleanhasInitialResponse()booleanisComplete()StringtoString()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:
 getMechanismNamein interfaceSaslClient
 
- 
hasInitialResponse
public boolean hasInitialResponse()
- Specified by:
 hasInitialResponsein interfaceSaslClient
 
- 
evaluateChallenge
public byte[] evaluateChallenge(byte[] challenge) throws SaslException- Specified by:
 evaluateChallengein interfaceSaslClient- Throws:
 SaslException
 
- 
isComplete
public boolean isComplete()
- Specified by:
 isCompletein interfaceSaslClient
 
- 
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException- Specified by:
 unwrapin interfaceSaslClient- Specified by:
 unwrapin interfaceSaslWrapper- Throws:
 SaslException
 
- 
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException- Specified by:
 wrapin interfaceSaslClient- Specified by:
 wrapin interfaceSaslWrapper- Throws:
 SaslException
 
- 
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
- Specified by:
 getNegotiatedPropertyin interfaceSaslClient
 
- 
dispose
public void dispose() throws SaslException- Specified by:
 disposein interfaceSaslClient- Throws:
 SaslException
 
 - 
 
 -