Package org.forgerock.secrets
Class SecretBuilder.SecretAndExpirer<T extends Secret>
- java.lang.Object
-
- org.forgerock.secrets.SecretBuilder.SecretAndExpirer<T>
-
- Type Parameters:
T
- the secret's type.
- Enclosing class:
- SecretBuilder
public static class SecretBuilder.SecretAndExpirer<T extends Secret> extends Object
A simple holder of a secret and its expirer.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretBuilder.Expirer
getExpirer()
Returns the expirer.T
getSecret()
Returns the secret.
-
-
-
Method Detail
-
getSecret
public T getSecret()
Returns the secret.- Returns:
- the secret.
-
getExpirer
public SecretBuilder.Expirer getExpirer()
Returns the expirer.- Returns:
- the expirer.
-
-