Interface ClientCredentialsFlowProperties
-
- All Superinterfaces:
AccessTokenRetrieverProperties
- All Known Subinterfaces:
PasswordFlowProperties
- All Known Implementing Classes:
ActuatorAuthProperties.ActuatorPasswordFlow
,AuthProperties.ClientCredentialsFlow
,AuthProperties.PasswordFlow
public interface ClientCredentialsFlowProperties extends AccessTokenRetrieverProperties
The client credentials flow properties.- Author:
- Christian Bremer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ClientCredentialsFlowProperties.Builder
The builder implementation.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ClientCredentialsFlowProperties.Builder
builder()
Returns a builder for client credentials flow properties.default org.springframework.util.MultiValueMap<String,String>
createBody()
Create http request body.default String
createCacheKey()
Create cache key.default org.springframework.util.MultiValueMap<String,String>
getAdditionalProperties()
Gets additional properties.default Optional<BasicAuthProperties>
getBasicAuthProperties()
Gets basic auth properties.String
getClientId()
Gets client id.String
getClientSecret()
Gets client secret.-
Methods inherited from interface org.bremersee.security.authentication.AccessTokenRetrieverProperties
createCacheKeyHashed, getTokenEndpoint
-
-
-
-
Method Detail
-
getClientId
String getClientId()
Gets client id.- Returns:
- the client id
-
getClientSecret
String getClientSecret()
Gets client secret.- Returns:
- the client secret
-
getAdditionalProperties
default org.springframework.util.MultiValueMap<String,String> getAdditionalProperties()
Gets additional properties.- Returns:
- the additional properties
-
getBasicAuthProperties
default Optional<BasicAuthProperties> getBasicAuthProperties()
Description copied from interface:AccessTokenRetrieverProperties
Gets basic auth properties.- Specified by:
getBasicAuthProperties
in interfaceAccessTokenRetrieverProperties
- Returns:
- the basic auth properties or
Optional.empty()
, if no basic auth is required
-
createCacheKey
default String createCacheKey()
Description copied from interface:AccessTokenRetrieverProperties
Create cache key.- Specified by:
createCacheKey
in interfaceAccessTokenRetrieverProperties
- Returns:
- the cache key
-
createBody
default org.springframework.util.MultiValueMap<String,String> createBody()
Description copied from interface:AccessTokenRetrieverProperties
Create http request body.- Specified by:
createBody
in interfaceAccessTokenRetrieverProperties
- Returns:
- the multi value map
-
builder
static ClientCredentialsFlowProperties.Builder builder()
Returns a builder for client credentials flow properties.- Returns:
- the builder
-
-