Class TokenGenerationParameter.Builder
- java.lang.Object
-
- org.silverpeas.core.security.token.TokenGenerationParameter.Builder
-
- Enclosing class:
- TokenGenerationParameter<T>
public static class TokenGenerationParameter.Builder extends Object
A builder of a chain of different token generation parameters.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenGenerationParameter[]
build()
Builds the chain of token generation parameters.<T> TokenGenerationParameter.Builder
params(String key, T value)
Adds a new configuration parameter in the chain build.
-
-
-
Method Detail
-
params
public <T> TokenGenerationParameter.Builder params(String key, T value)
Adds a new configuration parameter in the chain build.- Type Parameters:
T
- the type of the parameter value.- Parameters:
key
- the parameter key.value
- the parameter value.- Returns:
- the builder itself.
-
build
public TokenGenerationParameter[] build()
Builds the chain of token generation parameters.- Returns:
- an array of token generation parameters.
-
-