S
- The type of the secret.public final class DefaultingPurpose<S extends Secret> extends Object
This type (including all methods, constructors and fields) is continuing to evolve and so should be expected to change, potentially in backwards-incompatible ways even in a minor release. Changes are documented at the time of product release.
Constructor and Description |
---|
DefaultingPurpose(Purpose<S> defaultPurpose,
String customSecretId)
Creates a new defaulting purpose.
|
Modifier and Type | Method and Description |
---|---|
Purpose<S> |
getCustomPurpose(String instanceId)
Returns the instance specific purpose.
|
Purpose<S> |
getDefaultPurpose()
Returns the default purpose.
|
public DefaultingPurpose(Purpose<S> defaultPurpose, String customSecretId)
defaultPurpose
- The default purpose to use if the custom purpose is not available in the secrets provider.customSecretId
- The instance specific secret ID to use if available. The ID must contain %s.Copyright © 2010-2018, ForgeRock All Rights Reserved.