Package org.wildfly.security.sasl.util
Class AbstractDelegatingSaslServer
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServer
-
- All Implemented Interfaces:
SaslServer,SaslWrapper
- Direct Known Subclasses:
AuthenticationContextSaslServer,AuthenticationContextSaslServer,PrivilegedSaslServer
public abstract class AbstractDelegatingSaslServer extends Object implements SaslServer, SaslWrapper
An abstract base forSaslServerinstances which delegate to anotherSaslServer.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description protected SaslServerdelegateThe delegateSaslServer.-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDelegatingSaslServer(SaslServer delegate)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()byte[]evaluateResponse(byte[] response)StringgetAuthorizationID()StringgetMechanismName()ObjectgetNegotiatedProperty(String propName)booleanisComplete()StringtoString()byte[]unwrap(byte[] incoming, int offset, int len)byte[]wrap(byte[] outgoing, int offset, int len)
-
-
-
Field Detail
-
delegate
protected final SaslServer delegate
The delegateSaslServer.
-
-
Constructor Detail
-
AbstractDelegatingSaslServer
protected AbstractDelegatingSaslServer(SaslServer delegate)
Construct a new instance.- Parameters:
delegate- the SASL server to delegate to
-
-
Method Detail
-
getMechanismName
public String getMechanismName()
- Specified by:
getMechanismNamein interfaceSaslServer
-
evaluateResponse
public byte[] evaluateResponse(byte[] response) throws SaslException- Specified by:
evaluateResponsein interfaceSaslServer- Throws:
SaslException
-
getAuthorizationID
public String getAuthorizationID()
- Specified by:
getAuthorizationIDin interfaceSaslServer
-
isComplete
public boolean isComplete()
- Specified by:
isCompletein interfaceSaslServer
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException- Specified by:
unwrapin interfaceSaslServer- Specified by:
unwrapin interfaceSaslWrapper- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException- Specified by:
wrapin interfaceSaslServer- Specified by:
wrapin interfaceSaslWrapper- Throws:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
- Specified by:
getNegotiatedPropertyin interfaceSaslServer
-
dispose
public void dispose() throws SaslException- Specified by:
disposein interfaceSaslServer- Throws:
SaslException
-
-