Class ClientCredentialsFlowProperties.Builder
- java.lang.Object
-
- org.bremersee.security.authentication.ClientCredentialsFlowProperties.Builder
-
- Enclosing interface:
- ClientCredentialsFlowProperties
public static class ClientCredentialsFlowProperties.Builder extends Object
The builder implementation.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientCredentialsFlowProperties.Builderadd(String key, String... values)Adds an additional property on builder.ClientCredentialsFlowPropertiesbuild()Build client credentials flow properties.ClientCredentialsFlowProperties.BuilderclientId(String clientId)Sets client id on builder.ClientCredentialsFlowProperties.BuilderclientSecret(String clientSecret)Sets client secret on builder.ClientCredentialsFlowProperties.Builderfrom(ClientCredentialsFlowProperties properties)Gets the values from the given client credentials flow properties.ClientCredentialsFlowProperties.BuildertokenEndpoint(String tokenEndpoint)Sets token endpoint on builder.
-
-
-
Method Detail
-
tokenEndpoint
public ClientCredentialsFlowProperties.Builder tokenEndpoint(String tokenEndpoint)
Sets token endpoint on builder.- Parameters:
tokenEndpoint- the token endpoint- Returns:
- the builder
-
clientId
public ClientCredentialsFlowProperties.Builder clientId(String clientId)
Sets client id on builder.- Parameters:
clientId- the client id- Returns:
- the builder
-
clientSecret
public ClientCredentialsFlowProperties.Builder clientSecret(String clientSecret)
Sets client secret on builder.- Parameters:
clientSecret- the client secret- Returns:
- the builder
-
add
public ClientCredentialsFlowProperties.Builder add(String key, String... values)
Adds an additional property on builder.- Parameters:
key- the keyvalues- the values- Returns:
- the builder
-
from
public ClientCredentialsFlowProperties.Builder from(ClientCredentialsFlowProperties properties)
Gets the values from the given client credentials flow properties.- Parameters:
properties- the client credentials flow properties- Returns:
- the builder
-
build
public ClientCredentialsFlowProperties build()
Build client credentials flow properties.- Returns:
- the client credentials flow properties
-
-