WSSecurityEngineResult.TAG_SECRET ); return new SAMLKeyInfo(secret); } else if (el.equals(BINARY_SECRET) || el.equals(BINARY_SECRET_05_12)) { Text txt = (Text)node.getFirstChild(); return new SAMLKeyInfo(Base64.decode(txt.getData())); } else if (SecurityTokenReference.STR_QNAME.equals(el)) { STRParser strParser = new SignatureSTRParser(); (Element)node, data, docInfo, new HashMap<String, Object>() ); SAMLKeyInfo samlKeyInfo = new SAMLKeyInfo(strParser.getCertificates()); samlKeyInfo.setPublicKey(strParser.getPublicKey()); samlKeyInfo.setSecret(strParser.getSecretKey()); if (xmlStructure instanceof KeyValue) { PublicKey publicKey = ((KeyValue)xmlStructure).getPublicKey(); return new SAMLKeyInfo(publicKey); } else if (xmlStructure instanceof X509Data) { List<?> x509Data = ((X509Data)xmlStructure).getContent(); certs = new X509Certificate[1]; certs[0] = (X509Certificate)x509obj; return new SAMLKeyInfo(certs); } else if (x509obj instanceof X509IssuerSerial) { if (data.getSigCrypto() == null) { return new SAMLKeyInfo(certs);
WSSecurityEngineResult.TAG_SECRET ); return new SAMLKeyInfo(secret); } else if (el.equals(BINARY_SECRET) || el.equals(BINARY_SECRET_05_12)) { Text txt = (Text)node.getFirstChild(); return new SAMLKeyInfo(Base64.decode(txt.getData())); } else if (SecurityTokenReference.STR_QNAME.equals(el)) { STRParser strParser = new SignatureSTRParser(); (Element)node, data, docInfo, new HashMap<String, Object>() ); SAMLKeyInfo samlKeyInfo = new SAMLKeyInfo(strParser.getCertificates()); samlKeyInfo.setPublicKey(strParser.getPublicKey()); samlKeyInfo.setSecret(strParser.getSecretKey()); if (xmlStructure instanceof KeyValue) { PublicKey publicKey = ((KeyValue)xmlStructure).getPublicKey(); return new SAMLKeyInfo(publicKey); } else if (xmlStructure instanceof X509Data) { List<?> x509Data = ((X509Data)xmlStructure).getContent(); certs = new X509Certificate[1]; certs[0] = (X509Certificate)x509obj; return new SAMLKeyInfo(certs); } else if (x509obj instanceof X509IssuerSerial) { if (data.getSigCrypto() == null) { return new SAMLKeyInfo(certs);
return new SAMLKeyInfo(key);
return new SAMLKeyInfo(key);
return new SAMLKeyInfo(key);
return new SAMLKeyInfo(key);