if (logger.isLoggable(Level.FINEST)) {
logger.log(Level.FINEST, "Kerberos Token id: " + id);
}
Token token = (Token) securityHeader.getChildElement(id);
if (token != null) {
if (token instanceof BinarySecurityToken) {
return (BinarySecurityToken) token;
}
logger.log(Level.SEVERE, LogStringsMessages.WSS_1854_TWO_TOKENS_WITH_SAME_ID());