Class ProtectedResourceMetadata.Builder
java.lang.Object
io.micronaut.security.oauth2.metadata.ProtectedResourceMetadata.Builder
- Enclosing class:
- ProtectedResourceMetadata
Builder for
ProtectedResourceMetadata
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull ProtectedResourceMetadata.Builder
authorizationDetailsTypesSupported
(@Nullable List<String> authorizationDetailsTypesSupported) @NonNull ProtectedResourceMetadata.Builder
authorizationServer
(@NonNull String issuer) @NonNull ProtectedResourceMetadata.Builder
authorizationServer
(@NonNull URL issuer) @NonNull ProtectedResourceMetadata.Builder
authorizationServers
(@Nullable List<String> authorizationServers) @NonNull ProtectedResourceMetadata.Builder
bearerMethodsSupported
(@Nullable List<String> bearerMethodsSupported) @NonNull ProtectedResourceMetadata
build()
Build theProtectedResourceMetadata
instance.@NonNull ProtectedResourceMetadata.Builder
dpopBoundAccessTokensRequired
(Boolean dpopBoundAccessTokensRequired) @NonNull ProtectedResourceMetadata.Builder
dpopSigningAlgValuesSupported
(@Nullable List<String> dpopSigningAlgValuesSupported) @NonNull ProtectedResourceMetadata.Builder
@NonNull ProtectedResourceMetadata.Builder
@NonNull ProtectedResourceMetadata.Builder
resourceDocumentation
(@Nullable String resourceDocumentation) @NonNull ProtectedResourceMetadata.Builder
resourceName
(String resourceName) @NonNull ProtectedResourceMetadata.Builder
resourcePolicyUri
(@Nullable String resourcePolicyUri) @NonNull ProtectedResourceMetadata.Builder
resourceSigningAlgValuesSupported
(@Nullable List<String> resourceSigningAlgValuesSupported) @NonNull ProtectedResourceMetadata.Builder
resourceTosUri
(@Nullable String resourceTosUri) @NonNull ProtectedResourceMetadata.Builder
scopesSupported
(@Nullable List<String> scopesSupported) @NonNull ProtectedResourceMetadata.Builder
tlsClientCertificateBoundAccessTokens
(@Nullable Boolean tlsClientCertificateBoundAccessTokens)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resource
@NonNull public @NonNull ProtectedResourceMetadata.Builder resource(@NonNull @NonNull String resource) -
authorizationServers
@NonNull public @NonNull ProtectedResourceMetadata.Builder authorizationServers(@Nullable @Nullable List<String> authorizationServers) -
authorizationServer
@NonNull public @NonNull ProtectedResourceMetadata.Builder authorizationServer(@NonNull @NonNull String issuer) -
authorizationServer
@NonNull public @NonNull ProtectedResourceMetadata.Builder authorizationServer(@NonNull @NonNull URL issuer) -
jwksUri
@NonNull public @NonNull ProtectedResourceMetadata.Builder jwksUri(@Nullable @Nullable String jwksUri) -
scopesSupported
@NonNull public @NonNull ProtectedResourceMetadata.Builder scopesSupported(@Nullable @Nullable List<String> scopesSupported) -
bearerMethodsSupported
@NonNull public @NonNull ProtectedResourceMetadata.Builder bearerMethodsSupported(@Nullable @Nullable List<String> bearerMethodsSupported) -
resourceSigningAlgValuesSupported
@NonNull public @NonNull ProtectedResourceMetadata.Builder resourceSigningAlgValuesSupported(@Nullable @Nullable List<String> resourceSigningAlgValuesSupported) -
resourceName
-
resourceDocumentation
@NonNull public @NonNull ProtectedResourceMetadata.Builder resourceDocumentation(@Nullable @Nullable String resourceDocumentation) -
resourcePolicyUri
@NonNull public @NonNull ProtectedResourceMetadata.Builder resourcePolicyUri(@Nullable @Nullable String resourcePolicyUri) -
resourceTosUri
@NonNull public @NonNull ProtectedResourceMetadata.Builder resourceTosUri(@Nullable @Nullable String resourceTosUri) -
tlsClientCertificateBoundAccessTokens
@NonNull public @NonNull ProtectedResourceMetadata.Builder tlsClientCertificateBoundAccessTokens(@Nullable @Nullable Boolean tlsClientCertificateBoundAccessTokens) -
authorizationDetailsTypesSupported
@NonNull public @NonNull ProtectedResourceMetadata.Builder authorizationDetailsTypesSupported(@Nullable @Nullable List<String> authorizationDetailsTypesSupported) -
dpopSigningAlgValuesSupported
@NonNull public @NonNull ProtectedResourceMetadata.Builder dpopSigningAlgValuesSupported(@Nullable @Nullable List<String> dpopSigningAlgValuesSupported) -
dpopBoundAccessTokensRequired
@NonNull public @NonNull ProtectedResourceMetadata.Builder dpopBoundAccessTokensRequired(Boolean dpopBoundAccessTokensRequired) -
build
Build theProtectedResourceMetadata
instance.- Returns:
- a new
ProtectedResourceMetadata
-