binarySecurity = new PKIPathSecurity(doc);
} else if (WSSConstants.NS_GSS_Kerberos5_AP_REQ.equals(binarySecurityTokenType.getValueType())) {
binarySecurity = new KerberosSecurity(doc);
}
binarySecurity.addWSSENamespace();
binarySecurity.addWSUNamespace();
binarySecurity.setEncodingType(binarySecurityTokenType.getEncodingType());
binarySecurity.setValueType(binarySecurityTokenType.getValueType());
binarySecurity.setID(binarySecurityTokenType.getId());
binarySecurity.setToken(securityTokenData);