/** * Verify trust in the signature of a signed Assertion. This method is separate so that * the user can override if if they want. * @param assertion The signed Assertion * @param data The RequestData context * @return A Credential instance * @throws WSSecurityException */ protected Credential verifySignedAssertion( AssertionWrapper assertion, RequestData data ) throws WSSecurityException { Credential trustCredential = new Credential(); SAMLKeyInfo samlKeyInfo = assertion.getSignatureKeyInfo(); trustCredential.setPublicKey(samlKeyInfo.getPublicKey()); trustCredential.setCertificates(samlKeyInfo.getCerts()); return super.validate(trustCredential, data); }
/** * Verify trust in the signature of a signed Assertion. This method is separate so that * the user can override if if they want. * @param assertion The signed Assertion * @param data The RequestData context * @return A Credential instance * @throws WSSecurityException */ protected Credential verifySignedAssertion( AssertionWrapper assertion, RequestData data ) throws WSSecurityException { Credential trustCredential = new Credential(); SAMLKeyInfo samlKeyInfo = assertion.getSignatureKeyInfo(); trustCredential.setPublicKey(samlKeyInfo.getPublicKey()); trustCredential.setCertificates(samlKeyInfo.getCerts()); return super.validate(trustCredential, data); }
if (samlKeyInfo.getCerts() != null) { credential.setEntityCertificate(samlKeyInfo.getCerts()[0]); } else if (samlKeyInfo.getPublicKey() != null) { credential.setPublicKey(samlKeyInfo.getPublicKey()); } else { throw new WSSecurityException(
if (samlKeyInfo.getCerts() != null) { credential.setEntityCertificate(samlKeyInfo.getCerts()[0]); } else if (samlKeyInfo.getPublicKey() != null) { credential.setPublicKey(samlKeyInfo.getPublicKey()); } else { throw new WSSecurityException(
publicKey = samlKi.getPublicKey(); principal = createPrincipalFromSAML(assertion);
publicKey = samlKi.getPublicKey(); principal = createPrincipalFromSAML(assertion);
if (samlKeyInfo.getCerts() != null && samlKeyInfo.getCerts()[0] != null) { key = samlKeyInfo.getCerts()[0].getPublicKey(); } else if (samlKeyInfo.getPublicKey() != null) { key = samlKeyInfo.getPublicKey(); } else { throw new WSSecurityException(
if (samlKeyInfo.getCerts() != null && samlKeyInfo.getCerts()[0] != null) { key = samlKeyInfo.getCerts()[0].getPublicKey(); } else if (samlKeyInfo.getPublicKey() != null) { key = samlKeyInfo.getPublicKey(); } else { throw new WSSecurityException(
publicKey = keyInfo.getPublicKey(); principal = createPrincipalFromSAML(assertion);
publicKey = keyInfo.getPublicKey(); principal = createPrincipalFromSAML(assertion);
); if (samlKeyInfo != null) { publicKey = samlKeyInfo.getPublicKey(); certs = samlKeyInfo.getCerts(); wsDocInfo.setCrypto(userCrypto);
); if (samlKeyInfo != null) { publicKey = samlKeyInfo.getPublicKey(); certs = samlKeyInfo.getCerts(); wsDocInfo.setCrypto(userCrypto);