Class IridaOauthSecurityConfig.JWKConfig

  • Enclosing class:
    IridaOauthSecurityConfig

    @Configuration
    protected static class IridaOauthSecurityConfig.JWKConfig
    extends java.lang.Object
    Class for configuring the JSON Web Key for JSON Web Tokens used in OAuth2
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected JWKConfig()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext> jwkSource​(java.lang.String keyStoreLocation, java.lang.String keyStorePassword)  
      org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder​(com.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext> jwkSource)  
      org.springframework.security.oauth2.jwt.JwtEncoder jwtEncoder​(com.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext> jwkSource)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JWKConfig

        protected JWKConfig()
    • Method Detail

      • jwkSource

        @Bean
        public com.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext> jwkSource​(@Value("${oauth2.jwk.key-store}")
                                                                                                        java.lang.String keyStoreLocation,
                                                                                                        @Value("${oauth2.jwk.key-store-password}")
                                                                                                        java.lang.String keyStorePassword)
                                                                                                 throws java.security.KeyStoreException,
                                                                                                        java.security.NoSuchAlgorithmException,
                                                                                                        java.security.cert.CertificateException,
                                                                                                        java.io.FileNotFoundException,
                                                                                                        java.io.IOException
        Throws:
        java.security.KeyStoreException
        java.security.NoSuchAlgorithmException
        java.security.cert.CertificateException
        java.io.FileNotFoundException
        java.io.IOException
      • jwtEncoder

        @Bean
        public org.springframework.security.oauth2.jwt.JwtEncoder jwtEncoder​(com.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext> jwkSource)
      • jwtDecoder

        @Bean
        public org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder​(com.nimbusds.jose.jwk.source.JWKSource<com.nimbusds.jose.proc.SecurityContext> jwkSource)