Top Fields Constructors Methods
org.xnio.sasl

pack-priv final Class SaslClientWrapper

Located in compilation unit of org.xnio.sasl.SaslWrapper.

extends SaslWrapper
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final SaslClient

Constructor Summary

AccessConstructor and Description
pack-priv
SaslClientWrapper(final SaslClient saslClient)

Method Summary

Modifier and TypeMethod and Description
public byte[]
unwrap(final byte[]
the incoming message
bytes
,
final int
the offset into the byte array
off
,
final int
the length of the byte array to wrap
len
)

Implements abstract org.xnio.sasl.SaslWrapper.unwrap.

Unwrap a message.

public byte[]
unwrap(final ByteBuffer
the buffer from which bytes should be read
source
)

Implements abstract org.xnio.sasl.SaslWrapper.unwrap.

Unwrap a message.

public byte[]
wrap(final byte[]
the incoming message
bytes
,
final int
the offset into the byte array
off
,
final int
the length of the byte array to wrap
len
)

Implements abstract org.xnio.sasl.SaslWrapper.wrap.

Wrap a message.

public byte[]
wrap(final ByteBuffer
the buffer from which bytes should be read
source
)

Implements abstract org.xnio.sasl.SaslWrapper.wrap.

Wrap a message.

Inherited from org.xnio.sasl.SaslWrapper:
createcreateunwrapunwrapwrapwrap

Field Detail

saslClientback to summary
private final SaslClient saslClient

Constructor Detail

SaslClientWrapperback to summary
pack-priv SaslClientWrapper(final SaslClient saslClient)

Method Detail

unwrapback to summary
public byte[] unwrap(final byte[] bytes, final int off, final int len) throws SaslException

Implements abstract org.xnio.sasl.SaslWrapper.unwrap.

Doc from org.xnio.sasl.SaslWrapper.unwrap.

Unwrap a message.

Parameters
bytes:byte[]

the incoming message

off:int

the offset into the byte array

len:int

the length of the byte array to wrap

Returns:byte[]

the unwrap result

Exceptions
SaslException:
if a problem occurs
unwrapback to summary
public byte[] unwrap(final ByteBuffer source) throws SaslException

Implements abstract org.xnio.sasl.SaslWrapper.unwrap.

Doc from org.xnio.sasl.SaslWrapper.unwrap.

Unwrap a message.

Parameters
source:ByteBuffer

the buffer from which bytes should be read

Returns:byte[]

the unwrap result

Exceptions
SaslException:
if a problem occurs
wrapback to summary
public byte[] wrap(final byte[] bytes, final int off, final int len) throws SaslException

Implements abstract org.xnio.sasl.SaslWrapper.wrap.

Doc from org.xnio.sasl.SaslWrapper.wrap.

Wrap a message.

Parameters
bytes:byte[]

the incoming message

off:int

the offset into the byte array

len:int

the length of the byte array to wrap

Returns:byte[]

the wrap result

Exceptions
SaslException:
if a problem occurs
wrapback to summary
public byte[] wrap(final ByteBuffer source) throws SaslException

Implements abstract org.xnio.sasl.SaslWrapper.wrap.

Doc from org.xnio.sasl.SaslWrapper.wrap.

Wrap a message.

Parameters
source:ByteBuffer

the buffer from which bytes should be read

Returns:byte[]

the wrap result

Exceptions
SaslException:
if a problem occurs