/** * A method to create a Principal from a SAML Assertion * @param assertion An AssertionWrapper object * @return A principal */ private Principal createPrincipalFromSAML( AssertionWrapper assertion ) { SAMLTokenPrincipal samlPrincipal = new SAMLTokenPrincipal(assertion); String confirmMethod = null; List<String> methods = assertion.getConfirmationMethods(); if (methods != null && methods.size() > 0) { confirmMethod = methods.get(0); } if (OpenSAMLUtil.isMethodHolderOfKey(confirmMethod) && assertion.isSigned()) { trustedCredential = true; } return samlPrincipal; }
/** * A method to create a Principal from a SAML Assertion * @param assertion An AssertionWrapper object * @return A principal */ private Principal createPrincipalFromSAML( AssertionWrapper assertion ) { SAMLTokenPrincipal samlPrincipal = new SAMLTokenPrincipal(assertion); String confirmMethod = null; List<String> methods = assertion.getConfirmationMethods(); if (methods != null && methods.size() > 0) { confirmMethod = methods.get(0); } if (OpenSAMLUtil.isMethodHolderOfKey(confirmMethod) && assertion.isSigned()) { trustedCredential = true; } return samlPrincipal; }
boolean signed = samlAssertion.isSigned(); boolean requiredMethodFound = false; boolean standardMethodFound = false;
boolean signed = samlAssertion.isSigned(); boolean requiredMethodFound = false; boolean standardMethodFound = false;
if (samlAssertion.isSigned()) { result = new WSSecurityEngineResult(WSConstants.ST_SIGNED, samlAssertion); result.put(WSSecurityEngineResult.TAG_DATA_REF_URIS, dataRefs);
if (samlAssertion.isSigned()) { result = new WSSecurityEngineResult(WSConstants.ST_SIGNED, samlAssertion); result.put(WSSecurityEngineResult.TAG_DATA_REF_URIS, dataRefs);
if (assertion.isSigned()) { verifySignedAssertion(assertion, data);
if (assertion.isSigned()) { verifySignedAssertion(assertion, data);
if (userCrypto == null || !assertion.isSigned()) { throw new WSSecurityException( WSSecurityException.FAILURE,
if (userCrypto == null || !assertion.isSigned()) { throw new WSSecurityException( WSSecurityException.FAILURE,
WSDocInfo wsDocInfo ) throws WSSecurityException { if (samlAssertion.isSigned()) { Signature sig = samlAssertion.getSignature(); KeyInfo keyInfo = sig.getKeyInfo();
WSDocInfo wsDocInfo ) throws WSSecurityException { if (samlAssertion.isSigned()) { Signature sig = samlAssertion.getSignature(); KeyInfo keyInfo = sig.getKeyInfo();