x509DataType.getX509IssuerSerialOrX509SKIOrX509SubjectName(),
XMLSecurityConstants.TAG_dsig_X509Certificate
);
if (certBytes != null) {
X509Certificate cert = getCertificateFromBytes(certBytes);
TokenType tokenType = SecurityTokenConstants.X509V3Token;
if (cert.getVersion() == 1) {
tokenType = SecurityTokenConstants.X509V1Token;
}
X509SecurityToken token =
new X509SecurityToken(tokenType, inboundSecurityContext,