@Context @EachProperty(value="micronaut.security.oauth2.clients") public class OauthClientConfigurationProperties extends java.lang.Object implements OauthClientConfiguration
| Modifier and Type | Class and Description | 
|---|---|
| static class  | OauthClientConfigurationProperties.AuthorizationEndpointConfigurationPropertiesOAuth 2.0 authorization endpoint configuration. | 
| static class  | OauthClientConfigurationProperties.ClientCredentialsConfigurationPropertiesClient credentials configuration. | 
| static class  | OauthClientConfigurationProperties.IntrospectionEndpointConfigurationPropertiesIntrospection endpoint configuration. | 
| static class  | OauthClientConfigurationProperties.OpenIdClientConfigurationPropertiesOpenID client configuration. | 
| static class  | OauthClientConfigurationProperties.RevocationEndpointConfigurationPropertiesRevocation endpoint configuration. | 
| static class  | OauthClientConfigurationProperties.TokenEndpointConfigurationPropertiesOAuth 2.0 token endpoint configuration. | 
| Modifier and Type | Field and Description | 
|---|---|
| static boolean | DEFAULT_ENABLEDThe default enable value. | 
DEFAULT_ADVANCED_EXPIRATION, DEFAULT_AUTHENTICATION_METHOD| Constructor and Description | 
|---|
| OauthClientConfigurationProperties(java.lang.String name) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Optional<EndpointConfiguration> | getAuthorization() | 
| java.util.Optional<ClientCredentialsConfiguration> | getClientCredentials() | 
| java.lang.String | getClientId() | 
| java.lang.String | getClientSecret() | 
| GrantType | getGrantType() | 
| java.util.Optional<SecureEndpointConfiguration> | getIntrospection() | 
| java.lang.String | getName() | 
| java.util.Optional<OpenIdClientConfiguration> | getOpenid() | 
| java.util.Optional<SecureEndpointConfiguration> | getRevocation() | 
| java.util.List<java.lang.String> | getScopes() | 
| java.util.Optional<SecureEndpointConfiguration> | getToken() | 
| boolean | isEnabled() | 
| void | setAuthorization(OauthClientConfigurationProperties.AuthorizationEndpointConfigurationProperties authorization)The OAuth 2.0 authorization endpoint configuration. | 
| void | setClientCredentials(OauthClientConfigurationProperties.ClientCredentialsConfigurationProperties clientCredentials)Sets the Client Credentials configuration. | 
| void | setClientId(java.lang.String clientId)OAuth 2.0 client id. | 
| void | setClientSecret(java.lang.String clientSecret)OAuth 2.0 client secret. | 
| void | setEnabled(boolean enabled)Sets whether the client is enabled. | 
| void | setGrantType(GrantType grantType)OAuth 2.0 grant type. | 
| void | setIntrospection(OauthClientConfigurationProperties.IntrospectionEndpointConfigurationProperties introspection)Sets the introspection endpoint configuration. | 
| void | setOpenid(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties openid)The open id configuration. | 
| void | setRevocation(OauthClientConfigurationProperties.RevocationEndpointConfigurationProperties revocation)Sets the revocation endpoint configuration. | 
| void | setScopes(java.util.List<java.lang.String> scopes)Requested scopes. | 
| void | setToken(OauthClientConfigurationProperties.TokenEndpointConfigurationProperties token)The OAuth 2.0 token endpoint configuration. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTokenEndpointpublic static final boolean DEFAULT_ENABLED
public OauthClientConfigurationProperties(@Parameter
                                          java.lang.String name)
name - The provider name@NonNull public java.lang.String getClientId()
getClientId in interface OauthClientConfigurationpublic void setClientId(@NonNull
                        java.lang.String clientId)
clientId - The client id@Nullable public java.lang.String getClientSecret()
getClientSecret in interface OauthClientConfigurationpublic void setClientSecret(@Nullable
                            java.lang.String clientSecret)
clientSecret - The client secretpublic boolean isEnabled()
isEnabled in interface io.micronaut.core.util.Toggleablepublic void setEnabled(boolean enabled)
enabled - The enabled flag@NonNull public java.util.List<java.lang.String> getScopes()
getScopes in interface OauthClientConfigurationpublic void setScopes(java.util.List<java.lang.String> scopes)
scopes - The scopes@NonNull public java.lang.String getName()
getName in interface OauthClientConfiguration@NonNull public GrantType getGrantType()
getGrantType in interface OauthClientConfigurationpublic void setGrantType(@NonNull
                         GrantType grantType)
grantType - The grant typepublic java.util.Optional<SecureEndpointConfiguration> getToken()
getToken in interface OauthClientConfigurationpublic void setToken(OauthClientConfigurationProperties.TokenEndpointConfigurationProperties token)
token - The token endpoint configurationpublic java.util.Optional<EndpointConfiguration> getAuthorization()
getAuthorization in interface OauthClientConfiguration@NonNull public java.util.Optional<ClientCredentialsConfiguration> getClientCredentials()
getClientCredentials in interface OauthClientConfigurationpublic void setClientCredentials(@NonNull
                                 OauthClientConfigurationProperties.ClientCredentialsConfigurationProperties clientCredentials)
clientCredentials - client credentials configurationpublic void setAuthorization(OauthClientConfigurationProperties.AuthorizationEndpointConfigurationProperties authorization)
authorization - The authorization endpoint configurationpublic java.util.Optional<OpenIdClientConfiguration> getOpenid()
getOpenid in interface OauthClientConfigurationpublic void setOpenid(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties openid)
openid - The open id configurationpublic java.util.Optional<SecureEndpointConfiguration> getIntrospection()
getIntrospection in interface OauthClientConfigurationpublic void setIntrospection(OauthClientConfigurationProperties.IntrospectionEndpointConfigurationProperties introspection)
introspection - The introspection endpoint configurationpublic java.util.Optional<SecureEndpointConfiguration> getRevocation()
getRevocation in interface OauthClientConfigurationpublic void setRevocation(OauthClientConfigurationProperties.RevocationEndpointConfigurationProperties revocation)
revocation - The revocation endpoint configuration