timestamp = ts.getElement();
}
boolean check = true;
SupportingTokenPolicyValidator validator = new ConcreteSupportingTokenPolicyValidator();
validator.setUsernameTokenResults(utResults, utWithCallbacks);
validator.setSAMLTokenResults(samlResults);
validator.setTimestampElement(timestamp);
check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);
validator = new SignedTokenPolicyValidator();
validator.setUsernameTokenResults(utResults, utWithCallbacks);
validator.setSAMLTokenResults(samlResults);
validator.setTimestampElement(timestamp);
check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);
validator = new EndorsingTokenPolicyValidator();
validator.setUsernameTokenResults(utResults, utWithCallbacks);
validator.setSAMLTokenResults(samlResults);
validator.setTimestampElement(timestamp);
check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);
validator = new SignedEndorsingTokenPolicyValidator();
validator.setUsernameTokenResults(utResults, utWithCallbacks);
validator.setSAMLTokenResults(samlResults);
validator.setTimestampElement(timestamp);
check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);
validator = new SignedEncryptedTokenPolicyValidator();
validator.setUsernameTokenResults(utResults, utWithCallbacks);
validator.setSAMLTokenResults(samlResults);
validator.setTimestampElement(timestamp);
check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);
validator = new EncryptedTokenPolicyValidator();
validator.setUsernameTokenResults(utResults, utWithCallbacks);
validator.setSAMLTokenResults(samlResults);
validator.setTimestampElement(timestamp);
check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);
validator = new EndorsingEncryptedTokenPolicyValidator();
validator.setUsernameTokenResults(utResults, utWithCallbacks);
validator.setSAMLTokenResults(samlResults);
validator.setTimestampElement(timestamp);
check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);
validator = new SignedEndorsingEncryptedTokenPolicyValidator();
validator.setUsernameTokenResults(utResults, utWithCallbacks);
validator.setSAMLTokenResults(samlResults);
validator.setTimestampElement(timestamp);
check &= validator.validatePolicy(aim, msg, results, signedResults, encryptedResults);
return check;
}