Class SpringOpaqueTokenIntrospector.Builder
java.lang.Object
org.springframework.security.oauth2.server.resource.introspection.SpringOpaqueTokenIntrospector.Builder
- Enclosing class:
SpringOpaqueTokenIntrospector
Used to build
SpringOpaqueTokenIntrospector.- Since:
- 6.5
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates aSpringOpaqueTokenIntrospectorThe 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<SpringOpaqueTokenIntrospector> postProcessor) Adds aConsumerto customize theSpringOpaqueTokenIntrospectorafter 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
SpringOpaqueTokenIntrospector.Builder - Since:
- 6.5
-
clientSecret
The builder willencodethe client secret that you provide, so please give the unencoded value.- Parameters:
clientSecret- The unencoded client secret- Returns:
- the
SpringOpaqueTokenIntrospector.Builder - Since:
- 6.5
-
postProcessor
public SpringOpaqueTokenIntrospector.Builder postProcessor(Consumer<SpringOpaqueTokenIntrospector> postProcessor) Adds aConsumerto customize theSpringOpaqueTokenIntrospectorafter it is built. This allows for additional configuration that cannot be expressed through the builder methods.- Parameters:
postProcessor- theConsumerto customize the introspector- Returns:
- the
SpringOpaqueTokenIntrospector.Builder - Since:
- 7.1.0
-
build
Creates aSpringOpaqueTokenIntrospector- Returns:
- the
SpringOpaqueTokenIntrospector - Since:
- 6.5
-