//default valueType for X509 as v3
valueType = MessageConstants.X509v3_NS;
}
SecurableSoapMessage secureMessage = context.getSecurableSoapMessage();
X509SecurityToken x509Token = new X509SecurityToken(secureMessage.getSOAPPart(),certInfo.getX509Certificate(), x509id, valueType);
secureMessage.findOrCreateSecurityHeader().insertHeaderBlock(x509Token);
insertedX509Cache.put(x509id, x509Token);
certInfo.setReferenceType(MessageConstants.DIRECT_REFERENCE_TYPE);
//}
} catch(Exception e){
throw new XWSSecurityException(e);