Class RestClientOpaqueTokenIntrospector.Builder
java.lang.Object
org.springframework.security.oauth2.server.resource.introspection.RestClientOpaqueTokenIntrospector.Builder
- Enclosing class:
RestClientOpaqueTokenIntrospector
Used to build
RestClientOpaqueTokenIntrospector.- Since:
- 7.1
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates aRestClientOpaqueTokenIntrospectorThe builder willencodethe client id that you provide, so please give the unencoded value.clientSecret(String clientSecret) The builder willencodethe client secret that you provide, so please give the unencoded value.postProcessor(Consumer<RestClientOpaqueTokenIntrospector> postProcessor) Adds aConsumerto customize theRestClientOpaqueTokenIntrospectorafter it is built.
-
Method Details
-
clientId
The builder willencodethe client id that you provide, so please give the unencoded value.- Parameters:
clientId- The unencoded client id- Returns:
- the
RestClientOpaqueTokenIntrospector.Builder
-
clientSecret
The builder willencodethe client secret that you provide, so please give the unencoded value.- Parameters:
clientSecret- The unencoded client secret- Returns:
- the
RestClientOpaqueTokenIntrospector.Builder
-
postProcessor
public RestClientOpaqueTokenIntrospector.Builder postProcessor(Consumer<RestClientOpaqueTokenIntrospector> postProcessor) Adds aConsumerto customize theRestClientOpaqueTokenIntrospectorafter it is built. This allows for additional configuration that cannot be expressed through the builder methods.- Parameters:
postProcessor- theConsumerto customize the introspector- Returns:
- the
RestClientOpaqueTokenIntrospector.Builder
-
build
Creates aRestClientOpaqueTokenIntrospector- Returns:
- the
RestClientOpaqueTokenIntrospector
-