Class TokenGenerationParameter<T>
- java.lang.Object
-
- org.silverpeas.core.security.token.TokenGenerationParameter<T>
-
- Type Parameters:
T
- the concrete type of the parameter value.
public class TokenGenerationParameter<T> extends Object
Parameters for customizing the generation of a token.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenGenerationParameter.Builder
A builder of a chain of different token generation parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenGenerationParameter.Builder
builder()
Gets a builder of a chain of generation parameter.String
key()
static <T> TokenGenerationParameter<T>
params(String key, T value)
Convenient method to create a generation parameter.T
value()
Gets this generation parameter value.
-
-
-
Method Detail
-
builder
public static TokenGenerationParameter.Builder builder()
Gets a builder of a chain of generation parameter.- Returns:
- a builder of parameters.
-
params
public static <T> TokenGenerationParameter<T> params(String key, T value)
Convenient method to create a generation parameter.- Type Parameters:
T
- the type of the concrete parameter, id est the type of the value.- Parameters:
key
- the parameter key.value
- the parameter value.- Returns:
- a generation parameter.
-
key
public String key()
-
value
public T value()
Gets this generation parameter value.- Returns:
- the value of this parameter.
-
-