@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class KeyManagerRaesParameters extends Object implements RaesParametersProvider
RaesParameters by using a
KeyManager.
According to the requirements of RAES, only password based encryption is supported. The adapter pattern allows this class to be changed to support other encryption and authentication schemes in future versions without requiring to change the client code.
| Modifier and Type | Class and Description |
|---|---|
private class |
KeyManagerRaesParameters.Type0
An adapter which presents the KeyManager's
KeyProvider
interface as Type0RaesParameters. |
| Modifier and Type | Field and Description |
|---|---|
private KeyManager<AesCipherParameters> |
manager |
private URI |
resource |
| Constructor and Description |
|---|
KeyManagerRaesParameters(KeyManager<AesCipherParameters> manager,
URI resource)
Constructs new RAES parameters using the given key manager.
|
KeyManagerRaesParameters(KeyManagerProvider provider,
URI resource)
|
| Modifier and Type | Method and Description |
|---|---|
<P extends RaesParameters> |
get(Class<P> type)
Requests a
RaesParameters instance of the given
type. |
private final KeyManager<AesCipherParameters> manager
private final URI resource
public KeyManagerRaesParameters(KeyManagerProvider provider, URI resource)
public KeyManagerRaesParameters(KeyManager<AesCipherParameters> manager, URI resource)
resource - the absolute URI of the RAES file.IllegalArgumentException - if resource is not absolute.public <P extends RaesParameters> P get(Class<P> type)
RaesParametersProviderRaesParameters instance of the given
type.get in interface RaesParametersProvidertype - the RaesParameters interface class which's
implementation is searched.RaesParameters or null
if no RAES parameters are available.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.