public interface ConnectionSecurityLayer
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of any system resources or security-sensitive information that
this connection security layer might be using.
|
byte[] |
unwrap(byte[] incoming,
int offset,
int len)
Unwraps a byte array received from the peer.
|
byte[] |
wrap(byte[] outgoing,
int offset,
int len)
Wraps a byte array to be sent to the peer.
|
void dispose()
byte[] unwrap(byte[] incoming, int offset, int len) throws LdapException
incoming
- A non-null
byte array containing the encoded bytes
from the peer.offset
- The starting position in incoming
of the bytes to be
unwrapped.len
- The number of bytes from incoming
to be unwrapped.null
byte array containing the unwrapped bytes.LdapException
- If incoming
cannot be successfully unwrapped.byte[] wrap(byte[] outgoing, int offset, int len) throws LdapException
outgoing
- A non-null
byte array containing the unencoded bytes
to be sent to the peer.offset
- The starting position in outgoing
of the bytes to be
wrapped.len
- The number of bytes from outgoing
to be wrapped.null
byte array containing the wrapped bytes.LdapException
- If outgoing
cannot be successfully wrapped.Copyright 2010-2017 ForgeRock AS.