Class PasswordFlowProperties.Builder
- java.lang.Object
-
- org.bremersee.security.authentication.PasswordFlowProperties.Builder
-
- Enclosing interface:
- PasswordFlowProperties
public static class PasswordFlowProperties.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 PasswordFlowProperties.Builderadd(String key, String... values)Adds an additional property on builder.PasswordFlowPropertiesbuild()Build password flow properties.PasswordFlowProperties.BuilderclientId(String clientId)Sets client id on builder.PasswordFlowProperties.BuilderclientSecret(String clientSecret)Sets client secret on builder.PasswordFlowProperties.Builderfrom(ClientCredentialsFlowProperties properties)Gets the values from the given properties.PasswordFlowProperties.Builderpassword(String password)Sets password on builder.PasswordFlowProperties.BuildertokenEndpoint(String tokenEndpoint)Sets token endpoint on builder.PasswordFlowProperties.Builderusername(String username)Sets username on builder.
-
-
-
Method Detail
-
tokenEndpoint
public PasswordFlowProperties.Builder tokenEndpoint(String tokenEndpoint)
Sets token endpoint on builder.- Parameters:
tokenEndpoint- the token endpoint- Returns:
- the builder
-
clientId
public PasswordFlowProperties.Builder clientId(String clientId)
Sets client id on builder.- Parameters:
clientId- the client id- Returns:
- the builder
-
clientSecret
public PasswordFlowProperties.Builder clientSecret(String clientSecret)
Sets client secret on builder.- Parameters:
clientSecret- the client secret- Returns:
- the builder
-
username
public PasswordFlowProperties.Builder username(String username)
Sets username on builder.- Parameters:
username- the username- Returns:
- the builder
-
password
public PasswordFlowProperties.Builder password(String password)
Sets password on builder.- Parameters:
password- the password- Returns:
- the builder
-
add
public PasswordFlowProperties.Builder add(String key, String... values)
Adds an additional property on builder.- Parameters:
key- the keyvalues- the values- Returns:
- the builder
-
from
public PasswordFlowProperties.Builder from(ClientCredentialsFlowProperties properties)
Gets the values from the given properties.- Parameters:
properties- the properties- Returns:
- the builder
-
build
public PasswordFlowProperties build()
Build password flow properties.- Returns:
- the password flow properties
-
-