/** * Instantiate a new instance and get it or get the available instance. * @return IdentityLogTokenParser */ static IdentityLogTokenParser getInstance() { if (identityLogTokenParser == null) { synchronized (lock) { if (identityLogTokenParser == null) { identityLogTokenParser = new IdentityLogTokenParser(); } } } return identityLogTokenParser; }
/** * Check whether the given token value is appropriate to log. * * @param tokenName Name of the token. * @return True if token is appropriate to log. */ public static boolean isTokenLoggable(String tokenName) { IdentityLogTokenParser identityLogTokenParser = IdentityLogTokenParser.getInstance(); Map<String, String> logTokenMap = identityLogTokenParser.getLogTokenMap(); return Boolean.valueOf(logTokenMap.get(tokenName)); }
private IdentityLogTokenParser() { boolean readProperties = Boolean .valueOf(System.getProperty(IdentityConstants.IdentityTokens.READ_LOG_TOKEN_PROPERTIES)); if (readProperties) { buildConfiguration(); } }
/** * Check whether the given token value is appropriate to log. * @param tokenName Name of the token. * @return True if token is appropriate to log. */ public static boolean isTokenLoggable(String tokenName) { IdentityLogTokenParser identityLogTokenParser = IdentityLogTokenParser.getInstance(); Map<String, String> logTokenMap = identityLogTokenParser.getLogTokenMap(); return Boolean.valueOf(logTokenMap.get(tokenName)); }
private IdentityLogTokenParser() { boolean readProperties = Boolean .valueOf(System.getProperty(IdentityConstants.IdentityTokens.READ_LOG_TOKEN_PROPERTIES)); if (readProperties) { buildConfiguration(); } }
/** * Check whether the given token value is appropriate to log. * * @param tokenName Name of the token. * @return True if token is appropriate to log. */ public static boolean isTokenLoggable(String tokenName) { IdentityLogTokenParser identityLogTokenParser = IdentityLogTokenParser.getInstance(); Map<String, String> logTokenMap = identityLogTokenParser.getLogTokenMap(); return Boolean.valueOf(logTokenMap.get(tokenName)); }
private IdentityLogTokenParser() { boolean readProperties = Boolean .valueOf(System.getProperty(IdentityConstants.IdentityTokens.READ_LOG_TOKEN_PROPERTIES)); if (readProperties) { buildConfiguration(); } }
/** * Instantiate a new instance and get it or get the available instance. * @return IdentityLogTokenParser */ static IdentityLogTokenParser getInstance() { if (identityLogTokenParser == null) { synchronized (lock) { if (identityLogTokenParser == null) { identityLogTokenParser = new IdentityLogTokenParser(); } } } return identityLogTokenParser; }
/** * Instantiate a new instance and get it or get the available instance. * @return IdentityLogTokenParser */ static IdentityLogTokenParser getInstance() { if (identityLogTokenParser == null) { synchronized (lock) { if (identityLogTokenParser == null) { identityLogTokenParser = new IdentityLogTokenParser(); } } } return identityLogTokenParser; }