Package org.wildfly.security.sasl.util
Class ClientSaslWrapper
- java.lang.Object
-
- org.wildfly.security.sasl.util.ClientSaslWrapper
-
- All Implemented Interfaces:
SaslWrapper
public final class ClientSaslWrapper extends Object implements SaslWrapper
ASaslWrapper
which encapsulates aSaslClient
.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private SaslClient
saslClient
-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description ClientSaslWrapper(SaslClient saslClient)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
unwrap(byte[] incoming, int offset, int len)
byte[]
wrap(byte[] outgoing, int offset, int len)
-
-
-
Field Detail
-
saslClient
private final SaslClient saslClient
-
-
Constructor Detail
-
ClientSaslWrapper
public ClientSaslWrapper(SaslClient saslClient)
Construct a new instance.- Parameters:
saslClient
- theSaslClient
to delegate wrap/unwrap calls to.
-
-
Method Detail
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
- Specified by:
wrap
in interfaceSaslWrapper
- Throws:
SaslException
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
- Specified by:
unwrap
in interfaceSaslWrapper
- Throws:
SaslException
-
-