@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.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
|
Constructor and Description |
---|
OauthClientConfigurationProperties(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<EndpointConfiguration> |
getAuthorization()
https://tools.ietf.org/html/rfc6749#section-3.1
|
java.lang.String |
getClientId() |
java.lang.String |
getClientSecret() |
GrantType |
getGrantType() |
java.util.Optional<SecureEndpointConfiguration> |
getIntrospection()
https://tools.ietf.org/html/rfc7662.
|
java.lang.String |
getName() |
java.util.Optional<OpenIdClientConfiguration> |
getOpenid() |
java.util.Optional<SecureEndpointConfiguration> |
getRevocation()
https://tools.ietf.org/html/rfc7009.
|
java.util.List<java.lang.String> |
getScopes() |
java.util.Optional<SecureEndpointConfiguration> |
getToken()
https://tools.ietf.org/html/rfc6749#section-4.1.3
|
boolean |
isEnabled() |
void |
setAuthorization(OauthClientConfigurationProperties.AuthorizationEndpointConfigurationProperties authorization)
The OAuth 2.0 authorization endpoint 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)
The scopes to request.
|
void |
setToken(OauthClientConfigurationProperties.TokenEndpointConfigurationProperties token)
The OAuth 2.0 token endpoint configuration
|
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()
OauthClientConfiguration
getToken
in interface OauthClientConfiguration
public void setToken(OauthClientConfigurationProperties.TokenEndpointConfigurationProperties token)
token
- The token endpoint configurationpublic java.util.Optional<EndpointConfiguration> getAuthorization()
OauthClientConfiguration
getAuthorization
in interface OauthClientConfiguration
public 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()
OauthClientConfiguration
getIntrospection
in interface OauthClientConfiguration
public void setIntrospection(OauthClientConfigurationProperties.IntrospectionEndpointConfigurationProperties introspection)
introspection
- The introspection endpoint configurationpublic java.util.Optional<SecureEndpointConfiguration> getRevocation()
OauthClientConfiguration
getRevocation
in interface OauthClientConfiguration
public void setRevocation(OauthClientConfigurationProperties.RevocationEndpointConfigurationProperties revocation)
revocation
- The revocation endpoint configuration