@ThreadSafe public class KeyManagerRaesParameters extends java.lang.Object implements RaesParametersProvider
RaesParameters by using a
KeyManager for AesPbeParameters.
The current implementation supports only Type0RaesParameters.
| Modifier and Type | Field and Description |
|---|---|
protected net.java.truecommons.key.spec.KeyManager<net.java.truecommons.key.spec.common.AesPbeParameters> |
manager
The key manager for accessing RAES encrypted data.
|
protected java.net.URI |
raes
The resource URI of the RAES file.
|
| Constructor and Description |
|---|
KeyManagerRaesParameters(net.java.truecommons.key.spec.KeyManager<net.java.truecommons.key.spec.common.AesPbeParameters> manager,
java.net.URI raes)
Constructs new RAES parameters.
|
KeyManagerRaesParameters(net.java.truecommons.key.spec.KeyManagerMap container,
java.net.URI raes)
Constructs RAES parameters using the given key manager provider.
|
| Modifier and Type | Method and Description |
|---|---|
<P extends RaesParameters> |
get(java.lang.Class<P> type)
|
protected final net.java.truecommons.key.spec.KeyManager<net.java.truecommons.key.spec.common.AesPbeParameters> manager
protected final java.net.URI raes
public KeyManagerRaesParameters(net.java.truecommons.key.spec.KeyManagerMap container,
java.net.URI raes)
container - the container of the key manager for accessing RAES
encrypted data.raes - the absolute URI of the RAES file.public KeyManagerRaesParameters(net.java.truecommons.key.spec.KeyManager<net.java.truecommons.key.spec.common.AesPbeParameters> manager,
java.net.URI raes)
manager - the key manager for accessing RAES encrypted data.raes - the resource URI of the RAES file.public <P extends RaesParameters> P get(java.lang.Class<P> type)
RaesParameters of the given type
or null if not available.
If type is assignable from Type0RaesParameters, then the
KeyManager for AesPbeParameters will getKeyManager used which
has been provided to the constructor.
Otherwise, null gets returned.
get in interface RaesParametersProviderP - the type of the RAES parameters.type - the RaesParameters interface class which's
implementation is searched.RaesParameters of the given type
or null if not available.