Example usage for org.springframework.security.oauth2.jwt NimbusJwtDecoderJwkSupport NimbusJwtDecoderJwkSupport

List of usage examples for org.springframework.security.oauth2.jwt NimbusJwtDecoderJwkSupport NimbusJwtDecoderJwkSupport

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.jwt NimbusJwtDecoderJwkSupport NimbusJwtDecoderJwkSupport.

Prototype

public NimbusJwtDecoderJwkSupport(String jwkSetUrl, String jwsAlgorithm) 

Source Link

Document

Constructs a NimbusJwtDecoderJwkSupport using the provided parameters.

Usage

From source file:org.springframework.cloud.gcp.autoconfigure.security.IapAuthenticationAutoConfiguration.java

@Bean
@ConditionalOnMissingBean//  ww w  .  ja  va2s .  c o m
public JwtDecoder iapJwtDecoder(IapAuthenticationProperties properties,
        @Qualifier("iapJwtDelegatingValidator") DelegatingOAuth2TokenValidator<Jwt> validator) {

    NimbusJwtDecoderJwkSupport jwkSupport = new NimbusJwtDecoderJwkSupport(properties.getRegistry(),
            properties.getAlgorithm());
    jwkSupport.setJwtValidator(validator);

    return jwkSupport;
}