Class ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec

    • Constructor Detail

      • JwtSpec

        public JwtSpec()
    • Method Detail

      • authenticationManager

        public ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec authenticationManager​(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager)
        Configures the ReactiveAuthenticationManager to use
        Parameters:
        authenticationManager - the authentication manager to use
        Returns:
        the JwtSpec for additional configuration
      • jwtAuthenticationConverter

        public ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwtAuthenticationConverter​(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter)
        Configures the Converter to use for converting a Jwt into an AbstractAuthenticationToken.
        Parameters:
        jwtAuthenticationConverter - the converter to use
        Returns:
        the JwtSpec for additional configuration
        Since:
        5.1.1
      • jwtDecoder

        public ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec jwtDecoder​(org.springframework.security.oauth2.jwt.ReactiveJwtDecoder jwtDecoder)
        Configures the ReactiveJwtDecoder to use
        Parameters:
        jwtDecoder - the decoder to use
        Returns:
        the JwtSpec for additional configuration
      • publicKey

        public ServerHttpSecurity.OAuth2ResourceServerSpec.JwtSpec publicKey​(java.security.interfaces.RSAPublicKey publicKey)
        Configures a ReactiveJwtDecoder that leverages the provided RSAPublicKey
        Parameters:
        publicKey - the public key to use.
        Returns:
        the JwtSpec for additional configuration
      • getJwtDecoder

        protected org.springframework.security.oauth2.jwt.ReactiveJwtDecoder getJwtDecoder()
      • getJwtAuthenticationConverter

        protected org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> getJwtAuthenticationConverter()