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
,AuthenticationTimeoutSaslServerFactory.DelegatingTimeoutSaslServer
,PrivilegedSaslServer
public abstract class AbstractDelegatingSaslServer extends Object implements SaslServer, SaslWrapper
An abstract base forSaslServer
instances which delegate to anotherSaslServer
.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description protected SaslServer
delegate
The delegateSaslServer
.-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDelegatingSaslServer(SaslServer delegate)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
byte[]
evaluateResponse(byte[] response)
String
getAuthorizationID()
String
getMechanismName()
Object
getNegotiatedProperty(String propName)
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 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:
getMechanismName
in interfaceSaslServer
-
evaluateResponse
public byte[] evaluateResponse(byte[] response) throws SaslException
- Specified by:
evaluateResponse
in interfaceSaslServer
- Throws:
SaslException
-
getAuthorizationID
public String getAuthorizationID()
- Specified by:
getAuthorizationID
in interfaceSaslServer
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfaceSaslServer
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
- Specified by:
unwrap
in interfaceSaslServer
- Specified by:
unwrap
in interfaceSaslWrapper
- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
- Specified by:
wrap
in interfaceSaslServer
- Specified by:
wrap
in interfaceSaslWrapper
- Throws:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
- Specified by:
getNegotiatedProperty
in interfaceSaslServer
-
dispose
public void dispose() throws SaslException
- Specified by:
dispose
in interfaceSaslServer
- Throws:
SaslException
-
-