Top Description Methods
org.bouncycastle.crypto

public Interface KeyUnwrapper<T extends Parameters>

Known Direct Subinterfaces
org.bouncycastle.crypto.KeyUnwrapperUsingSecureRandom
Known Direct Implementers
org.bouncycastle.crypto.fips.FipsKeyUnwrapper, org.bouncycastle.crypto.general.GuardedKeyWrapOperatorFactory.GuardedUnwrapper
Type Parameters
<T>
the parameter type for the un-wrapper.

Base interface for a key un-wrapper.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the un-wrapper's parameters.
getParameters
()

Return the parameters for this un-wrapper.

public byte[]

Returns:

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

Return the unwrapped byte encoding of a key.

Method Detail

getParametersback to summary
public T getParameters()

Return the parameters for this un-wrapper.

Returns:T

the un-wrapper's parameters.

unwrapback to summary
public byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidWrappingException

Return the unwrapped byte encoding of a key.

Parameters
in:byte[]

input data array.

inOff:int

offset into data array wrapped key starts at.

inLen:int

length of wrapped key data.

Returns:byte[]

the unwrapped byte encoding of the key.

Exceptions
InvalidWrappingException:
if the wrapping cannot be processed.