org.silverpeas.token
Class TokenGenerationParameter.Builder

java.lang.Object
  extended by org.silverpeas.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
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2016 Silverpeas. All Rights Reserved.