public Credential handleSAMLToken( AssertionWrapper samlAssertion, RequestData data, Validator validator, WSDocInfo docInfo ) throws WSSecurityException { // Parse the subject if it exists samlAssertion.parseHOKSubject(data, docInfo); // Now delegate the rest of the verification to the Validator Credential credential = new Credential(); credential.setAssertion(samlAssertion); if (validator != null) { return validator.validate(credential, data); } return credential; }
public Credential handleSAMLToken( AssertionWrapper samlAssertion, RequestData data, Validator validator, WSDocInfo docInfo ) throws WSSecurityException { // Parse the subject if it exists samlAssertion.parseHOKSubject(data, docInfo); // Now delegate the rest of the verification to the Validator Credential credential = new Credential(); credential.setAssertion(samlAssertion); if (validator != null) { return validator.validate(credential, data); } return credential; }
} else { assertion = new AssertionWrapper(processedToken); assertion.parseHOKSubject(data, wsDocInfo);
} else { assertion = new AssertionWrapper(processedToken); assertion.parseHOKSubject(data, wsDocInfo);