}
} else if (referenceType.equals(MessageConstants.X509_ISSUER_TYPE)) {
BinarySecurityToken bst = createBinarySecurityToken(binding, binding.getX509Certificate());
X509Certificate xCert = binding.getX509Certificate();
X509IssuerSerial xis = elementFactory.createX509IssuerSerial(xCert.getIssuerDN().getName(), xCert.getSerialNumber());
X509Data x509Data = elementFactory.createX509DataWithIssuerSerial(xis);
buildKeyInfo(x509Data, binding.getSTRID());
try {
if (binding.getSTRID() != null) {
SecurityElement bsToken = elementFactory.createBinarySecurityToken(null, binding.getX509Certificate().getEncoded());
SSEData data = new SSEData(bsToken, false, context.getNamespaceContext());