// EncodingType should not be set -
// As specified by WSS spec
newElement.removeAttribute ("EncodingType");
} catch (DOMException de) {
logger.log(Level.SEVERE,com.sun.xml.wss.logging.LogStringsMessages.WSS_0607_STR_TRANSFORM_EXCEPTION());
throw new XWSSecurityRuntimeException (de.getMessage (), de);
}
} else if (MessageConstants.ThumbPrintIdentifier_NS.equals (valueType)) {
X509Certificate cert = null;
Object token = tokenCache.get (keyId);
if(token instanceof X509ThumbPrintIdentifier ){
if(token != null){
cert = ((X509ThumbPrintIdentifier)token).getCertificate ();
}
}
if(cert == null){
cert = filterContext.getSecurityEnvironment ().getCertificate (
filterContext.getExtraneousProperties (), XMLUtil.getDecodedBase64EncodedData (keyId), MessageConstants.THUMB_PRINT_TYPE);
}
secToken = new X509SecurityToken (soapDocument, cert);
tokenElement = secToken.getAsSoapElement ();
newElement = tokenElement;
//(Element)element.getOwnerDocument().importNode(tokenElement, true);
try {
// EncodingType should not be set -
// As specified by WSS spec
newElement.removeAttribute ("EncodingType");
} catch (DOMException de) {
logger.log(Level.SEVERE,com.sun.xml.wss.logging.LogStringsMessages.WSS_0607_STR_TRANSFORM_EXCEPTION());
throw new XWSSecurityRuntimeException (de.getMessage (), de);
}
}else if(MessageConstants.EncryptedKeyIdentifier_NS.equals (valueType)){
// do something here
newElement = null;
} else if (MessageConstants.WSSE_SAML_KEY_IDENTIFIER_VALUE_TYPE.equals (valueType) ||