All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.autoconfigure.security.oauth.JwtTokenStoreAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.autoconfigure.security.oauth;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityConfigEnabled;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityJwtEnabled;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityOAuthEnabled;

@ConditionalOnWebApplication
@ConditionalOnSecurityJwtEnabled
@ConditionalOnSecurityConfigEnabled
@ConditionalOnSecurityOAuthEnabled
@SpringBootConfiguration
@ConditionalOnProperty(name = org.zodiac.security.oauth.constants.OAuthSystemPropertiesConstants.SPRING_SECURITY_OAUTH_STORE_TYPE, havingValue = org.zodiac.security.oauth.constants.OAuthConstants.STORE_TYPE_JWT)
public class JwtTokenStoreAutoConfiguration extends org.zodiac.security.oauth.config.JwtTokenStoreConfigurer {

    public JwtTokenStoreAutoConfiguration() {
        super();
    }

    @Bean
    @Override
    protected org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtAccessTokenConverter(org.zodiac.security.jwt.config.SecurityJwtInfo securityJwtInfo) {
        return super.jwtAccessTokenConverter(securityJwtInfo);
    }

    @Bean
    @Override
    protected org.springframework.security.oauth2.provider.token.TokenStore jwtTokenStore(org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtAccessTokenConverter) {
        return super.jwtTokenStore(jwtAccessTokenConverter);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy