Top Description Methods
org.bouncycastle.crypto

public Interface KeyWrapper<T extends Parameters>

Known Direct Subinterfaces
org.bouncycastle.crypto.KeyWrapperUsingSecureRandom
Known Direct Implementers
org.bouncycastle.crypto.fips.FipsKeyWrapper
Type Parameters
<T>
the parameter type for the wrapper.

Base interface for a key wrapper.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the wrapper's parameters.
getParameters
()

Return the parameters for this wrapper.

public byte[]

Returns:

the wrapped encoding of the key.
wrap
(byte[]
input data array.
in
,
int
offset into data array key data starts at.
inOff
,
int
length of key data.
inLen
)

Return the wrapped version of a key byte encoding.

Method Detail

getParametersback to summary
public T getParameters()

Return the parameters for this wrapper.

Returns:T

the wrapper's parameters.

wrapback to summary
public byte[] wrap(byte[] in, int inOff, int inLen) throws PlainInputProcessingException

Return the wrapped version of a key byte encoding.

Parameters
in:byte[]

input data array.

inOff:int

offset into data array key data starts at.

inLen:int

length of key data.

Returns:byte[]

the wrapped encoding of the key.

Exceptions
PlainInputProcessingException:
if the passed in input cannot be processed.