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

org.zodiac.autoconfigure.security.SecurityJwtAutoConfiguration Maven / Gradle / Ivy

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

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.zodiac.autoconfigure.security.condition.ConditionalOnSecurityJwtEnabled;
import org.zodiac.autoconfigure.security.jwt.SecurityJwtProperties;

@SpringBootConfiguration
@ConditionalOnSecurityJwtEnabled
@ConditionalOnClass(value = {org.zodiac.security.jwt.config.SecurityJwtInfo.class})
public class SecurityJwtAutoConfiguration {

    public SecurityJwtAutoConfiguration() {
    }

    @Bean
    @ConditionalOnMissingBean
    @ConditionalOnClass(value = {org.zodiac.security.util.SecurityJwtUtil.class})
    @ConfigurationProperties(prefix = SecurityJwtProperties.PREFIX, ignoreInvalidFields = true)
    protected SecurityJwtProperties securityJwtProperties() {
        return new SecurityJwtProperties();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy