Interface PasswordFlowProperties
-
- All Superinterfaces:
AccessTokenRetrieverProperties,ClientCredentialsFlowProperties
- All Known Implementing Classes:
AuthProperties.PasswordFlow
public interface PasswordFlowProperties extends ClientCredentialsFlowProperties
The password flow properties.- Author:
- Christian Bremer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPasswordFlowProperties.BuilderThe builder implementation.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static PasswordFlowProperties.Builderbuilder()Returns a builder for password flow properties.default org.springframework.util.MultiValueMap<String,String>createBody()Create http request body.default StringcreateCacheKey()Create cache key.default Optional<BasicAuthProperties>getBasicAuthProperties()Gets basic auth properties.StringgetPassword()Gets password.StringgetUsername()Gets username.-
Methods inherited from interface org.bremersee.security.authentication.AccessTokenRetrieverProperties
createCacheKeyHashed, getTokenEndpoint
-
Methods inherited from interface org.bremersee.security.authentication.ClientCredentialsFlowProperties
getAdditionalProperties, getClientId, getClientSecret
-
-
-
-
Method Detail
-
getUsername
String getUsername()
Gets username.- Returns:
- the username
-
getPassword
String getPassword()
Gets password.- Returns:
- the password
-
getBasicAuthProperties
default Optional<BasicAuthProperties> getBasicAuthProperties()
Description copied from interface:AccessTokenRetrieverPropertiesGets basic auth properties.- Specified by:
getBasicAuthPropertiesin interfaceAccessTokenRetrieverProperties- Specified by:
getBasicAuthPropertiesin interfaceClientCredentialsFlowProperties- Returns:
- the basic auth properties or
Optional.empty(), if no basic auth is required
-
createCacheKey
default String createCacheKey()
Description copied from interface:AccessTokenRetrieverPropertiesCreate cache key.- Specified by:
createCacheKeyin interfaceAccessTokenRetrieverProperties- Specified by:
createCacheKeyin interfaceClientCredentialsFlowProperties- Returns:
- the cache key
-
createBody
default org.springframework.util.MultiValueMap<String,String> createBody()
Description copied from interface:AccessTokenRetrieverPropertiesCreate http request body.- Specified by:
createBodyin interfaceAccessTokenRetrieverProperties- Specified by:
createBodyin interfaceClientCredentialsFlowProperties- Returns:
- the multi value map
-
builder
static PasswordFlowProperties.Builder builder()
Returns a builder for password flow properties.- Returns:
- the builder
-
-