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.Builder
add(String key, String... values)
Adds an additional property on builder.PasswordFlowProperties
build()
Build password flow properties.PasswordFlowProperties.Builder
clientId(String clientId)
Sets client id on builder.PasswordFlowProperties.Builder
clientSecret(String clientSecret)
Sets client secret on builder.PasswordFlowProperties.Builder
from(ClientCredentialsFlowProperties properties)
Gets the values from the given properties.PasswordFlowProperties.Builder
password(String password)
Sets password on builder.PasswordFlowProperties.Builder
tokenEndpoint(String tokenEndpoint)
Sets token endpoint on builder.PasswordFlowProperties.Builder
username(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
-
-