Class ExternalSaslServer
- java.lang.Object
-
- org.wildfly.security.sasl.external.ExternalSaslServer
-
- All Implemented Interfaces:
SaslServer
final class ExternalSaslServer extends Object implements SaslServer
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private String
authorizationID
private CallbackHandler
cbh
private boolean
complete
-
Constructor Summary
Constructors Constructor Description ExternalSaslServer(CallbackHandler cbh)
-
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
-
cbh
private final CallbackHandler cbh
-
complete
private boolean complete
-
authorizationID
private String authorizationID
-
-
Constructor Detail
-
ExternalSaslServer
ExternalSaslServer(CallbackHandler cbh)
-
-
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
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfaceSaslServer
-
getAuthorizationID
public String getAuthorizationID()
- Specified by:
getAuthorizationID
in interfaceSaslServer
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
- Specified by:
unwrap
in interfaceSaslServer
- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
- Specified by:
wrap
in interfaceSaslServer
- 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
-
-