Package org.wildfly.security.sasl.plain
Class PlainSaslClient
- java.lang.Object
-
- org.wildfly.security.sasl.plain.PlainSaslClient
-
- All Implemented Interfaces:
SaslClient
,SaslWrapper
final class PlainSaslClient extends Object implements SaslClient, SaslWrapper
ThePLAIN
SASL client implementation.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private String
authorizationId
private CallbackHandler
cbh
private boolean
complete
private long
profile
-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description PlainSaslClient(String authorizationId, CallbackHandler cbh, boolean skipNormalization)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
byte[]
evaluateChallenge(byte[] challenge)
String
getMechanismName()
Object
getNegotiatedProperty(String propName)
boolean
hasInitialResponse()
boolean
isComplete()
byte[]
unwrap(byte[] incoming, int offset, int len)
byte[]
wrap(byte[] outgoing, int offset, int len)
-
-
-
Field Detail
-
authorizationId
private final String authorizationId
-
cbh
private final CallbackHandler cbh
-
profile
private final long profile
-
complete
private boolean complete
-
-
Constructor Detail
-
PlainSaslClient
PlainSaslClient(String authorizationId, CallbackHandler cbh, boolean skipNormalization)
-
-
Method Detail
-
getMechanismName
public String getMechanismName()
- Specified by:
getMechanismName
in interfaceSaslClient
-
hasInitialResponse
public boolean hasInitialResponse()
- Specified by:
hasInitialResponse
in interfaceSaslClient
-
evaluateChallenge
public byte[] evaluateChallenge(byte[] challenge) throws SaslException
- Specified by:
evaluateChallenge
in interfaceSaslClient
- Throws:
SaslException
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in interfaceSaslClient
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
- Specified by:
unwrap
in interfaceSaslClient
- Specified by:
unwrap
in interfaceSaslWrapper
- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
- Specified by:
wrap
in interfaceSaslClient
- Specified by:
wrap
in interfaceSaslWrapper
- Throws:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
- Specified by:
getNegotiatedProperty
in interfaceSaslClient
-
dispose
public void dispose() throws SaslException
- Specified by:
dispose
in interfaceSaslClient
- Throws:
SaslException
-
-