made logger declarations consistent across project, closes #780

pull/803/head
Justin Richer 2015-03-08 21:56:33 -04:00
parent 849a2b3271
commit c09b63c69f
53 changed files with 211 additions and 53 deletions

View File

@ -84,7 +84,10 @@ public class IntrospectingTokenService implements ResourceServerTokenServices {
} }
private Map<String, TokenCacheObject> authCache = new HashMap<String, TokenCacheObject>(); private Map<String, TokenCacheObject> authCache = new HashMap<String, TokenCacheObject>();
private static Logger logger = LoggerFactory.getLogger(IntrospectingTokenService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(IntrospectingTokenService.class);
/** /**
* @return the introspectionConfigurationService * @return the introspectionConfigurationService

View File

@ -47,7 +47,10 @@ import com.google.gson.JsonParser;
*/ */
public class UserInfoFetcher { public class UserInfoFetcher {
private Logger logger = LoggerFactory.getLogger(UserInfoFetcher.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(UserInfoFetcher.class);
public UserInfo loadUserInfo(final OIDCAuthenticationToken token) { public UserInfo loadUserInfo(final OIDCAuthenticationToken token) {

View File

@ -55,7 +55,10 @@ import com.google.gson.JsonObject;
*/ */
public class DynamicRegistrationClientConfigurationService implements ClientConfigurationService { public class DynamicRegistrationClientConfigurationService implements ClientConfigurationService {
private static Logger logger = LoggerFactory.getLogger(DynamicServerConfigurationService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DynamicRegistrationClientConfigurationService.class);
private LoadingCache<ServerConfiguration, RegisteredClient> clients; private LoadingCache<ServerConfiguration, RegisteredClient> clients;

View File

@ -57,7 +57,10 @@ import com.google.gson.JsonParser;
*/ */
public class DynamicServerConfigurationService implements ServerConfigurationService { public class DynamicServerConfigurationService implements ServerConfigurationService {
private static Logger logger = LoggerFactory.getLogger(DynamicServerConfigurationService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DynamicServerConfigurationService.class);
// map of issuer -> server configuration, loaded dynamically from service discovery // map of issuer -> server configuration, loaded dynamically from service discovery
private LoadingCache<String, ServerConfiguration> servers; private LoadingCache<String, ServerConfiguration> servers;

View File

@ -50,7 +50,10 @@ import com.google.gson.JsonSerializer;
*/ */
public class JsonFileRegisteredClientService implements RegisteredClientService { public class JsonFileRegisteredClientService implements RegisteredClientService {
private static Logger logger = LoggerFactory.getLogger(JsonFileRegisteredClientService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(JsonFileRegisteredClientService.class);
private Gson gson = new GsonBuilder() private Gson gson = new GsonBuilder()
.registerTypeAdapter(RegisteredClient.class, new JsonSerializer<RegisteredClient>() { .registerTypeAdapter(RegisteredClient.class, new JsonSerializer<RegisteredClient>() {

View File

@ -55,7 +55,10 @@ import com.google.gson.JsonParser;
*/ */
public class WebfingerIssuerService implements IssuerService { public class WebfingerIssuerService implements IssuerService {
private static Logger logger = LoggerFactory.getLogger(WebfingerIssuerService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(WebfingerIssuerService.class);
// map of user input -> issuer, loaded dynamically from webfinger discover // map of user input -> issuer, loaded dynamically from webfinger discover
private LoadingCache<UriComponents, String> issuers; private LoadingCache<UriComponents, String> issuers;

View File

@ -35,7 +35,10 @@ import com.google.common.base.Strings;
*/ */
public class WebfingerURLNormalizer { public class WebfingerURLNormalizer {
private static Logger logger = LoggerFactory.getLogger(WebfingerURLNormalizer.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(WebfingerURLNormalizer.class);
// pattern used to parse user input; we can't use the built-in java URI parser // pattern used to parse user input; we can't use the built-in java URI parser
private static final Pattern pattern = Pattern.compile("^" + private static final Pattern pattern = Pattern.compile("^" +

View File

@ -52,7 +52,10 @@ import com.nimbusds.jose.jwk.RSAKey;
*/ */
public class DefaultJWTEncryptionAndDecryptionService implements JWTEncryptionAndDecryptionService { public class DefaultJWTEncryptionAndDecryptionService implements JWTEncryptionAndDecryptionService {
private static Logger logger = LoggerFactory.getLogger(DefaultJWTEncryptionAndDecryptionService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DefaultJWTEncryptionAndDecryptionService.class);
// map of identifier to encrypter // map of identifier to encrypter
private Map<String, JWEEncrypter> encrypters = new HashMap<String, JWEEncrypter>(); private Map<String, JWEEncrypter> encrypters = new HashMap<String, JWEEncrypter>();

View File

@ -53,7 +53,10 @@ public class DefaultJWTSigningAndValidationService implements JWTSigningAndValid
// map of identifier to verifier // map of identifier to verifier
private Map<String, JWSVerifier> verifiers = new HashMap<String, JWSVerifier>(); private Map<String, JWSVerifier> verifiers = new HashMap<String, JWSVerifier>();
private static Logger logger = LoggerFactory.getLogger(DefaultJWTSigningAndValidationService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DefaultJWTSigningAndValidationService.class);
private String defaultSignerKeyId; private String defaultSignerKeyId;

View File

@ -51,7 +51,10 @@ import com.nimbusds.jose.jwk.JWKSet;
@Service @Service
public class JWKSetCacheService { public class JWKSetCacheService {
private static Logger logger = LoggerFactory.getLogger(JWKSetCacheService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(JWKSetCacheService.class);
// map of jwk set uri -> signing/validation service built on the keys found in that jwk set // map of jwk set uri -> signing/validation service built on the keys found in that jwk set
private LoadingCache<String, JWTSigningAndValidationService> validators; private LoadingCache<String, JWTSigningAndValidationService> validators;

View File

@ -48,7 +48,10 @@ import com.nimbusds.jose.util.Base64URL;
@Service @Service
public class SymmetricKeyJWTValidatorCacheService { public class SymmetricKeyJWTValidatorCacheService {
private static Logger logger = LoggerFactory.getLogger(SymmetricKeyJWTValidatorCacheService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(SymmetricKeyJWTValidatorCacheService.class);
private LoadingCache<String, JWTSigningAndValidationService> validators; private LoadingCache<String, JWTSigningAndValidationService> validators;

View File

@ -37,7 +37,10 @@ import org.springframework.util.StringUtils;
*/ */
public class ConfigurationPropertiesBean { public class ConfigurationPropertiesBean {
private static Logger logger = LoggerFactory.getLogger(ConfigurationPropertiesBean.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(ConfigurationPropertiesBean.class);
private String issuer; private String issuer;

View File

@ -43,7 +43,10 @@ import com.nimbusds.jose.jwk.JWKSet;
public class JWKSetView extends AbstractView { public class JWKSetView extends AbstractView {
public static final String VIEWNAME = "jwkSet"; public static final String VIEWNAME = "jwkSet";
private static Logger logger = LoggerFactory.getLogger(JWKSetView.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(JWKSetView.class);
@Override @Override
protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) { protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) {

View File

@ -59,7 +59,10 @@ import com.nimbusds.jose.JWSAlgorithm;
@SuppressWarnings(value = {"rawtypes", "unchecked"}) @SuppressWarnings(value = {"rawtypes", "unchecked"})
public class JsonUtils { public class JsonUtils {
private static Logger logger = LoggerFactory.getLogger(JsonUtils.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(JsonUtils.class);
private static Gson gson = new Gson(); private static Gson gson = new Gson();

View File

@ -47,7 +47,10 @@ import com.google.gson.JsonObject;
@Component("webfingerView") @Component("webfingerView")
public class WebfingerView extends AbstractView { public class WebfingerView extends AbstractView {
private static Logger logger = LoggerFactory.getLogger(WebfingerView.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(WebfingerView.class);
private Gson gson = new GsonBuilder() private Gson gson = new GsonBuilder()
.setExclusionStrategies(new ExclusionStrategy() { .setExclusionStrategies(new ExclusionStrategy() {

View File

@ -57,7 +57,10 @@ import com.nimbusds.jose.JWSAlgorithm;
@Controller @Controller
public class DiscoveryEndpoint { public class DiscoveryEndpoint {
private static Logger logger = LoggerFactory.getLogger(DiscoveryEndpoint.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DiscoveryEndpoint.class);
@Autowired @Autowired
private ConfigurationPropertiesBean config; private ConfigurationPropertiesBean config;

View File

@ -39,7 +39,10 @@ import com.google.common.base.Joiner;
@Service @Service
public class DefaultIntrospectionResultAssembler implements IntrospectionResultAssembler { public class DefaultIntrospectionResultAssembler implements IntrospectionResultAssembler {
private static Logger log = LoggerFactory.getLogger(DefaultIntrospectionResultAssembler.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DefaultIntrospectionResultAssembler.class);
@Override @Override
public Map<String, Object> assembleFrom(OAuth2AccessTokenEntity accessToken, UserInfo userInfo) { public Map<String, Object> assembleFrom(OAuth2AccessTokenEntity accessToken, UserInfo userInfo) {

View File

@ -61,7 +61,10 @@ import com.google.gson.JsonParser;
@Service @Service
public class DefaultOAuth2ClientDetailsEntityService implements ClientDetailsEntityService { public class DefaultOAuth2ClientDetailsEntityService implements ClientDetailsEntityService {
private static Logger logger = LoggerFactory.getLogger(DefaultOAuth2ClientDetailsEntityService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DefaultOAuth2ClientDetailsEntityService.class);
@Autowired @Autowired
private OAuth2ClientRepository clientRepository; private OAuth2ClientRepository clientRepository;

View File

@ -64,7 +64,10 @@ import com.nimbusds.jwt.PlainJWT;
@Service("defaultOAuth2ProviderTokenService") @Service("defaultOAuth2ProviderTokenService")
public class DefaultOAuth2ProviderTokenService implements OAuth2TokenEntityService { public class DefaultOAuth2ProviderTokenService implements OAuth2TokenEntityService {
private static Logger logger = LoggerFactory.getLogger(DefaultOAuth2ProviderTokenService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DefaultOAuth2ProviderTokenService.class);
@Autowired @Autowired
private OAuth2TokenRepository tokenRepository; private OAuth2TokenRepository tokenRepository;

View File

@ -48,7 +48,10 @@ public class TokenApiView extends AbstractView {
public static final String VIEWNAME = "tokenApiView"; public static final String VIEWNAME = "tokenApiView";
private static Logger logger = LoggerFactory.getLogger(JsonEntityView.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(TokenApiView.class);
private Gson gson = new GsonBuilder() private Gson gson = new GsonBuilder()
.setExclusionStrategies(new ExclusionStrategy() { .setExclusionStrategies(new ExclusionStrategy() {

View File

@ -63,7 +63,10 @@ public class IntrospectionEndpoint {
@Autowired @Autowired
private UserInfoService userInfoService; private UserInfoService userInfoService;
private static Logger logger = LoggerFactory.getLogger(IntrospectionEndpoint.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(IntrospectionEndpoint.class);
public IntrospectionEndpoint() { public IntrospectionEndpoint() {

View File

@ -80,7 +80,10 @@ public class OAuthConfirmationController {
@Autowired @Autowired
private StatsService statsService; private StatsService statsService;
private static Logger logger = LoggerFactory.getLogger(OAuthConfirmationController.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(OAuthConfirmationController.class);
public OAuthConfirmationController() { public OAuthConfirmationController() {

View File

@ -40,7 +40,10 @@ public class RevocationEndpoint {
@Autowired @Autowired
OAuth2TokenEntityService tokenServices; OAuth2TokenEntityService tokenServices;
private static Logger logger = LoggerFactory.getLogger(RevocationEndpoint.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(RevocationEndpoint.class);
@PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_CLIENT')") @PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_CLIENT')")
@RequestMapping("/revoke") @RequestMapping("/revoke")

View File

@ -52,7 +52,10 @@ public class ScopeAPI {
@Autowired @Autowired
private SystemScopeService scopeService; private SystemScopeService scopeService;
private static Logger logger = LoggerFactory.getLogger(ScopeAPI.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(ScopeAPI.class);
private Gson gson = new Gson(); private Gson gson = new Gson();

View File

@ -59,7 +59,10 @@ public class TokenAPI {
@Autowired @Autowired
private OIDCTokenService oidcTokenService; private OIDCTokenService oidcTokenService;
private static Logger logger = LoggerFactory.getLogger(TokenAPI.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(TokenAPI.class);
@RequestMapping(value = "/access", method = RequestMethod.GET, produces = "application/json") @RequestMapping(value = "/access", method = RequestMethod.GET, produces = "application/json")
public String getAllAccessTokens(ModelMap m, Principal p) { public String getAllAccessTokens(ModelMap m, Principal p) {

View File

@ -54,6 +54,9 @@ import com.nimbusds.jwt.SignedJWT;
*/ */
public class JWTBearerAuthenticationProvider implements AuthenticationProvider { public class JWTBearerAuthenticationProvider implements AuthenticationProvider {
/**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(JWTBearerAuthenticationProvider.class); private static final Logger logger = LoggerFactory.getLogger(JWTBearerAuthenticationProvider.class);
private static final GrantedAuthority ROLE_CLIENT = new SimpleGrantedAuthority("ROLE_CLIENT"); private static final GrantedAuthority ROLE_CLIENT = new SimpleGrantedAuthority("ROLE_CLIENT");

View File

@ -59,8 +59,10 @@ import com.google.common.base.Strings;
@Component("authRequestFilter") @Component("authRequestFilter")
public class AuthorizationRequestFilter extends GenericFilterBean { public class AuthorizationRequestFilter extends GenericFilterBean {
/**
private Logger logger = LoggerFactory.getLogger(AuthorizationRequestFilter.class); * Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(AuthorizationRequestFilter.class);
public final static String PROMPTED = "PROMPT_FILTER_PROMPTED"; public final static String PROMPTED = "PROMPT_FILTER_PROMPTED";
public final static String PROMPT_REQUESTED = "PROMPT_FILTER_REQUESTED"; public final static String PROMPT_REQUESTED = "PROMPT_FILTER_REQUESTED";

View File

@ -58,7 +58,10 @@ import com.nimbusds.jwt.SignedJWT;
@Component("connectOAuth2RequestFactory") @Component("connectOAuth2RequestFactory")
public class ConnectOAuth2RequestFactory extends DefaultOAuth2RequestFactory { public class ConnectOAuth2RequestFactory extends DefaultOAuth2RequestFactory {
private static Logger logger = LoggerFactory.getLogger(ConnectOAuth2RequestFactory.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(ConnectOAuth2RequestFactory.class);
private ClientDetailsEntityService clientDetailsService; private ClientDetailsEntityService clientDetailsService;

View File

@ -46,7 +46,10 @@ import com.google.common.collect.Collections2;
@Service("defaultApprovedSiteService") @Service("defaultApprovedSiteService")
public class DefaultApprovedSiteService implements ApprovedSiteService { public class DefaultApprovedSiteService implements ApprovedSiteService {
private static Logger logger = LoggerFactory.getLogger(DefaultApprovedSiteService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DefaultApprovedSiteService.class);
@Autowired @Autowired
private ApprovedSiteRepository approvedSiteRepository; private ApprovedSiteRepository approvedSiteRepository;

View File

@ -68,7 +68,10 @@ import com.nimbusds.jwt.SignedJWT;
@Service @Service
public class DefaultOIDCTokenService implements OIDCTokenService { public class DefaultOIDCTokenService implements OIDCTokenService {
Logger logger = LoggerFactory.getLogger(DefaultOIDCTokenService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DefaultOIDCTokenService.class);
@Autowired @Autowired
private JWTSigningAndValidationService jwtService; private JWTSigningAndValidationService jwtService;

View File

@ -11,6 +11,9 @@ import org.springframework.format.datetime.DateFormatter;
public abstract class MITREidDataServiceSupport { public abstract class MITREidDataServiceSupport {
private final DateFormatter dateFormatter; private final DateFormatter dateFormatter;
/**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(MITREidDataServiceSupport.class); private static final Logger logger = LoggerFactory.getLogger(MITREidDataServiceSupport.class);
public MITREidDataServiceSupport() { public MITREidDataServiceSupport() {

View File

@ -77,7 +77,10 @@ import com.google.gson.stream.JsonWriter;
@SuppressWarnings(value = {"unchecked"}) @SuppressWarnings(value = {"unchecked"})
public class MITREidDataService_1_0 extends MITREidDataServiceSupport implements MITREidDataService { public class MITREidDataService_1_0 extends MITREidDataServiceSupport implements MITREidDataService {
private final static Logger logger = LoggerFactory.getLogger(MITREidDataService_1_0.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(MITREidDataService_1_0.class);
@Autowired @Autowired
private OAuth2ClientRepository clientRepository; private OAuth2ClientRepository clientRepository;
@Autowired @Autowired

View File

@ -80,7 +80,10 @@ import com.google.gson.stream.JsonWriter;
@SuppressWarnings(value = {"unchecked"}) @SuppressWarnings(value = {"unchecked"})
public class MITREidDataService_1_1 extends MITREidDataServiceSupport implements MITREidDataService { public class MITREidDataService_1_1 extends MITREidDataServiceSupport implements MITREidDataService {
private final static Logger logger = LoggerFactory.getLogger(MITREidDataService_1_1.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(MITREidDataService_1_1.class);
@Autowired @Autowired
private OAuth2ClientRepository clientRepository; private OAuth2ClientRepository clientRepository;
@Autowired @Autowired

View File

@ -82,7 +82,10 @@ import com.google.gson.stream.JsonWriter;
@SuppressWarnings(value = {"unchecked"}) @SuppressWarnings(value = {"unchecked"})
public class MITREidDataService_1_2 extends MITREidDataServiceSupport implements MITREidDataService { public class MITREidDataService_1_2 extends MITREidDataServiceSupport implements MITREidDataService {
private final static Logger logger = LoggerFactory.getLogger(MITREidDataService_1_2.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(MITREidDataService_1_2.class);
@Autowired @Autowired
private OAuth2ClientRepository clientRepository; private OAuth2ClientRepository clientRepository;
@Autowired @Autowired

View File

@ -44,7 +44,10 @@ import com.google.common.collect.Iterables;
@Service("uuidPairwiseIdentiferService") @Service("uuidPairwiseIdentiferService")
public class UUIDPairwiseIdentiferService implements PairwiseIdentiferService { public class UUIDPairwiseIdentiferService implements PairwiseIdentiferService {
private static Logger logger = LoggerFactory.getLogger(UUIDPairwiseIdentiferService.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(UUIDPairwiseIdentiferService.class);
@Autowired @Autowired
private PairwiseIdentifierRepository pairwiseIdentifierRepository; private PairwiseIdentifierRepository pairwiseIdentifierRepository;

View File

@ -49,7 +49,10 @@ import com.nimbusds.jwt.SignedJWT;
@Service @Service
public class ConnectTokenEnhancer implements TokenEnhancer { public class ConnectTokenEnhancer implements TokenEnhancer {
Logger logger = LoggerFactory.getLogger(ConnectTokenEnhancer.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(ConnectTokenEnhancer.class);
@Autowired @Autowired
private ConfigurationPropertiesBean configBean; private ConfigurationPropertiesBean configBean;

View File

@ -37,7 +37,10 @@ import com.nimbusds.jose.util.Base64URL;
*/ */
public class IdTokenHashUtils { public class IdTokenHashUtils {
private static Logger logger = LoggerFactory.getLogger(IdTokenHashUtils.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(IdTokenHashUtils.class);
/** /**
* Compute the SHA hash of an authorization code * Compute the SHA hash of an authorization code

View File

@ -54,7 +54,10 @@ import com.google.gson.JsonSerializer;
* *
*/ */
public abstract class AbstractClientEntityView extends AbstractView { public abstract class AbstractClientEntityView extends AbstractView {
private static Logger logger = LoggerFactory.getLogger(ClientEntityViewForAdmins.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(AbstractClientEntityView.class);
private Gson gson = new GsonBuilder() private Gson gson = new GsonBuilder()
.setExclusionStrategies(getExclusionStrategy()) .setExclusionStrategies(getExclusionStrategy())

View File

@ -49,7 +49,10 @@ import com.google.gson.JsonObject;
@Component(ClientInformationResponseView.VIEWNAME) @Component(ClientInformationResponseView.VIEWNAME)
public class ClientInformationResponseView extends AbstractView { public class ClientInformationResponseView extends AbstractView {
private static Logger logger = LoggerFactory.getLogger(ClientInformationResponseView.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(ClientInformationResponseView.class);
public static final String VIEWNAME = "clientInformationResponseView"; public static final String VIEWNAME = "clientInformationResponseView";

View File

@ -52,7 +52,10 @@ import com.google.gson.JsonSerializer;
@Component(JsonApprovedSiteView.VIEWNAME) @Component(JsonApprovedSiteView.VIEWNAME)
public class JsonApprovedSiteView extends AbstractView { public class JsonApprovedSiteView extends AbstractView {
private static Logger logger = LoggerFactory.getLogger(JsonApprovedSiteView.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(JsonApprovedSiteView.class);
public static final String VIEWNAME = "jsonApprovedSiteView"; public static final String VIEWNAME = "jsonApprovedSiteView";

View File

@ -45,7 +45,10 @@ import com.google.gson.GsonBuilder;
@Component(JsonEntityView.VIEWNAME) @Component(JsonEntityView.VIEWNAME)
public class JsonEntityView extends AbstractView { public class JsonEntityView extends AbstractView {
private static Logger logger = LoggerFactory.getLogger(JsonEntityView.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(JsonEntityView.class);
public static final String VIEWNAME = "jsonEntityView"; public static final String VIEWNAME = "jsonEntityView";

View File

@ -44,7 +44,10 @@ import com.google.gson.JsonObject;
@Component(JsonErrorView.VIEWNAME) @Component(JsonErrorView.VIEWNAME)
public class JsonErrorView extends AbstractView { public class JsonErrorView extends AbstractView {
private static Logger logger = LoggerFactory.getLogger(JsonEntityView.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(JsonErrorView.class);
public static final String VIEWNAME = "jsonErrorView"; public static final String VIEWNAME = "jsonErrorView";

View File

@ -59,7 +59,10 @@ import com.nimbusds.jwt.SignedJWT;
@Component(UserInfoJWTView.VIEWNAME) @Component(UserInfoJWTView.VIEWNAME)
public class UserInfoJWTView extends UserInfoView { public class UserInfoJWTView extends UserInfoView {
private static Logger logger = LoggerFactory.getLogger(UserInfoJWTView.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(UserInfoJWTView.class);
public static final String VIEWNAME = "userInfoJwtView"; public static final String VIEWNAME = "userInfoJwtView";

View File

@ -50,7 +50,10 @@ public class UserInfoView extends AbstractView {
public static final String VIEWNAME = "userInfoView"; public static final String VIEWNAME = "userInfoView";
private static Logger logger = LoggerFactory.getLogger(UserInfoView.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(UserInfoView.class);
@Autowired @Autowired
private ScopeClaimTranslationService translator; private ScopeClaimTranslationService translator;

View File

@ -54,7 +54,10 @@ public class ApprovedSiteAPI {
@Autowired @Autowired
OAuth2TokenEntityService tokenServices; OAuth2TokenEntityService tokenServices;
private static Logger logger = LoggerFactory.getLogger(ApprovedSiteAPI.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(ApprovedSiteAPI.class);
/** /**
* Get a list of all of this user's approved sites * Get a list of all of this user's approved sites

View File

@ -44,7 +44,10 @@ import org.springframework.stereotype.Component;
@Component("authenticationTimeStamper") @Component("authenticationTimeStamper")
public class AuthenticationTimeStamper extends SavedRequestAwareAuthenticationSuccessHandler { public class AuthenticationTimeStamper extends SavedRequestAwareAuthenticationSuccessHandler {
private static Logger logger = LoggerFactory.getLogger(AuthenticationTimeStamper.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(AuthenticationTimeStamper.class);
public static final String AUTH_TIMESTAMP = "AUTH_TIMESTAMP"; public static final String AUTH_TIMESTAMP = "AUTH_TIMESTAMP";

View File

@ -56,7 +56,10 @@ public class BlacklistAPI {
@Autowired @Autowired
private BlacklistedSiteService blacklistService; private BlacklistedSiteService blacklistService;
private static Logger logger = LoggerFactory.getLogger(BlacklistAPI.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(BlacklistAPI.class);
private Gson gson = new Gson(); private Gson gson = new Gson();
private JsonParser parser = new JsonParser(); private JsonParser parser = new JsonParser();

View File

@ -108,7 +108,10 @@ public class ClientAPI {
.setDateFormat("yyyy-MM-dd'T'HH:mm:ssZ") .setDateFormat("yyyy-MM-dd'T'HH:mm:ssZ")
.create(); .create();
private static Logger logger = LoggerFactory.getLogger(ClientAPI.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(ClientAPI.class);
/** /**
* Get a list of all clients * Get a list of all clients

View File

@ -53,7 +53,10 @@ import com.google.gson.stream.JsonWriter;
@PreAuthorize("hasRole('ROLE_ADMIN')") // you need to be an admin to even think about this -- this is a potentially dangerous API!! @PreAuthorize("hasRole('ROLE_ADMIN')") // you need to be an admin to even think about this -- this is a potentially dangerous API!!
public class DataAPI { public class DataAPI {
private static Logger logger = LoggerFactory.getLogger(DataAPI.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DataAPI.class);
private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"); private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");

View File

@ -85,7 +85,10 @@ public class DynamicClientRegistrationEndpoint {
@Autowired @Autowired
private OIDCTokenService connectTokenService; private OIDCTokenService connectTokenService;
private static Logger logger = LoggerFactory.getLogger(DynamicClientRegistrationEndpoint.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(DynamicClientRegistrationEndpoint.class);
/** /**
* Create a new Client, issue a client ID, and create a registration access token. * Create a new Client, issue a client ID, and create a registration access token.

View File

@ -82,7 +82,10 @@ public class ProtectedResourceRegistrationEndpoint {
@Autowired @Autowired
private OIDCTokenService connectTokenService; private OIDCTokenService connectTokenService;
private static Logger logger = LoggerFactory.getLogger(ProtectedResourceRegistrationEndpoint.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(ProtectedResourceRegistrationEndpoint.class);
/** /**
* Create a new Client, issue a client ID, and create a registration access token. * Create a new Client, issue a client ID, and create a registration access token.

View File

@ -56,7 +56,10 @@ public class UserInfoEndpoint {
@Autowired @Autowired
private ClientDetailsEntityService clientService; private ClientDetailsEntityService clientService;
private static Logger logger = LoggerFactory.getLogger(UserInfoEndpoint.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(UserInfoEndpoint.class);
private static final MediaType JOSE_MEDIA_TYPE = new MediaType("application", "jwt"); private static final MediaType JOSE_MEDIA_TYPE = new MediaType("application", "jwt");

View File

@ -56,7 +56,10 @@ public class WhitelistAPI {
@Autowired @Autowired
private WhitelistedSiteService whitelistService; private WhitelistedSiteService whitelistService;
private static Logger logger = LoggerFactory.getLogger(WhitelistAPI.class); /**
* Logger for this class
*/
private static final Logger logger = LoggerFactory.getLogger(WhitelistAPI.class);
private Gson gson = new Gson(); private Gson gson = new Gson();
private JsonParser parser = new JsonParser(); private JsonParser parser = new JsonParser();