@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.AuthorizationEndpointConfigurationProperties
OAuth 2.0 authorization endpoint configuration.
|
static class |
OauthClientConfigurationProperties.ClientCredentialsConfigurationProperties
Client credentials configuration.
|
static class |
OauthClientConfigurationProperties.IntrospectionEndpointConfigurationProperties
Introspection endpoint configuration.
|
static class |
OauthClientConfigurationProperties.OpenIdClientConfigurationProperties
OpenID client configuration.
|
static class |
OauthClientConfigurationProperties.RevocationEndpointConfigurationProperties
Revocation endpoint configuration.
|
static class |
OauthClientConfigurationProperties.TokenEndpointConfigurationProperties
OAuth 2.0 token endpoint configuration.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The 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, wait
getTokenEndpoint
public 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 OauthClientConfiguration
public void setClientId(@NonNull java.lang.String clientId)
clientId
- The client id@Nullable public java.lang.String getClientSecret()
getClientSecret
in interface OauthClientConfiguration
public void setClientSecret(@Nullable java.lang.String clientSecret)
clientSecret
- The client secretpublic boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- The enabled flag@NonNull public java.util.List<java.lang.String> getScopes()
getScopes
in interface OauthClientConfiguration
public 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 OauthClientConfiguration
public void setGrantType(@NonNull GrantType grantType)
grantType
- The grant typepublic java.util.Optional<SecureEndpointConfiguration> getToken()
getToken
in interface OauthClientConfiguration
public 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 OauthClientConfiguration
public 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 OauthClientConfiguration
public void setOpenid(OauthClientConfigurationProperties.OpenIdClientConfigurationProperties openid)
openid
- The open id configurationpublic java.util.Optional<SecureEndpointConfiguration> getIntrospection()
getIntrospection
in interface OauthClientConfiguration
public void setIntrospection(OauthClientConfigurationProperties.IntrospectionEndpointConfigurationProperties introspection)
introspection
- The introspection endpoint configurationpublic java.util.Optional<SecureEndpointConfiguration> getRevocation()
getRevocation
in interface OauthClientConfiguration
public void setRevocation(OauthClientConfigurationProperties.RevocationEndpointConfigurationProperties revocation)
revocation
- The revocation endpoint configuration