Class ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec

  • Enclosing class:
    ServerHttpSecurity.OAuth2ResourceServerSpec

    public final class ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec
    extends java.lang.Object
    Configures Opaque Token Resource Server support
    Since:
    5.2
    • Method Detail

      • introspectionUri

        public ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec introspectionUri​(java.lang.String introspectionUri)
        Configures the URI of the Introspection endpoint
        Parameters:
        introspectionUri - The URI of the Introspection endpoint
        Returns:
        the OpaqueTokenSpec for additional configuration
      • introspectionClientCredentials

        public ServerHttpSecurity.OAuth2ResourceServerSpec.OpaqueTokenSpec introspectionClientCredentials​(java.lang.String clientId,
                                                                                                          java.lang.String clientSecret)
        Configures the credentials for Introspection endpoint
        Parameters:
        clientId - The clientId part of the credentials
        clientSecret - The clientSecret part of the credentials
        Returns:
        the OpaqueTokenSpec for additional configuration
      • getAuthenticationManager

        protected org.springframework.security.authentication.ReactiveAuthenticationManager getAuthenticationManager()
      • getIntrospector

        protected org.springframework.security.oauth2.server.resource.introspection.ReactiveOpaqueTokenIntrospector getIntrospector()