Package org.wildfly.security.sasl.plain
Class PlainSaslServer
- java.lang.Object
-
- org.wildfly.security.sasl.plain.PlainSaslServer
-
- All Implemented Interfaces:
SaslServer
,SaslWrapper
final class PlainSaslServer extends Object implements SaslServer, SaslWrapper
- Author:
- Darran Lofthouse, David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private String
authorizedId
private CallbackHandler
callbackHandler
private boolean
complete
-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description PlainSaslServer(CallbackHandler callbackHandler)
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()
byte[]
unwrap(byte[] incoming, int offset, int len)
byte[]
wrap(byte[] outgoing, int offset, int len)
-
-
-
Field Detail
-
callbackHandler
private final CallbackHandler callbackHandler
-
complete
private boolean complete
-
authorizedId
private String authorizedId
-
-
Constructor Detail
-
PlainSaslServer
public PlainSaslServer(CallbackHandler callbackHandler)
Construct a new instance.- Parameters:
callbackHandler
- the callback handler
-
-
Method Detail
-
getAuthorizationID
public String getAuthorizationID()
- Specified by:
getAuthorizationID
in interfaceSaslServer
-
getMechanismName
public String getMechanismName()
- Specified by:
getMechanismName
in interfaceSaslServer
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfaceSaslServer
-
evaluateResponse
public byte[] evaluateResponse(byte[] response) throws SaslException
- Specified by:
evaluateResponse
in interfaceSaslServer
- Throws:
SaslException
-
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
-
-