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
ThePLAINSASL client implementation.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private StringauthorizationIdprivate CallbackHandlercbhprivate booleancompleteprivate longprofile-
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 voiddispose()byte[]evaluateChallenge(byte[] challenge)StringgetMechanismName()ObjectgetNegotiatedProperty(String propName)booleanhasInitialResponse()booleanisComplete()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:
getMechanismNamein interfaceSaslClient
-
hasInitialResponse
public boolean hasInitialResponse()
- Specified by:
hasInitialResponsein interfaceSaslClient
-
evaluateChallenge
public byte[] evaluateChallenge(byte[] challenge) throws SaslException- Specified by:
evaluateChallengein interfaceSaslClient- Throws:
SaslException
-
isComplete
public boolean isComplete()
- Specified by:
isCompletein interfaceSaslClient
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException- Specified by:
unwrapin interfaceSaslClient- Specified by:
unwrapin interfaceSaslWrapper- Throws:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException- Specified by:
wrapin interfaceSaslClient- Specified by:
wrapin interfaceSaslWrapper- Throws:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
- Specified by:
getNegotiatedPropertyin interfaceSaslClient
-
dispose
public void dispose() throws SaslException- Specified by:
disposein interfaceSaslClient- Throws:
SaslException
-
-