public class Assertionsvalidation extends Object implements IAssertionValidator
| Constructor and Description |
|---|
Assertionsvalidation()
This is a requirement for the Opensaml lib - public no arg constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ConfigurationBean configuration) |
org.opensaml.saml2.core.Assertion |
getAssertionObject(String assertionString)
Generates an assertion object from a string
|
org.opensaml.saml2.core.Assertion |
validateAssertions(String xml)
This method is invoked by the clients/stubs to validate the signature of
assertions using the public key of the signed entity read from a file, returns null if signature is not valid
|
boolean |
validateSignature(org.opensaml.saml2.core.Assertion assertion)
Validates the signature of the assertion
|
boolean |
validateTimeInterval(org.opensaml.saml2.core.Assertion assertion)
Validates the lifetime of the assertion basing on the notBefore and notOnOrAfter properties
|
public Assertionsvalidation()
public void configure(ConfigurationBean configuration)
configure in interface IAssertionValidatorpublic org.opensaml.saml2.core.Assertion validateAssertions(String xml) throws AssertionValidationException, org.opensaml.xml.ConfigurationException
IAssertionValidatorvalidateAssertions in interface IAssertionValidatorxml - SAML assertion in StringAssertionValidationException - in case of any exceptionsorg.opensaml.xml.ConfigurationException - if an invalid configuration has been insertedpublic org.opensaml.saml2.core.Assertion getAssertionObject(String assertionString)
IAssertionValidatorgetAssertionObject in interface IAssertionValidatorpublic boolean validateTimeInterval(org.opensaml.saml2.core.Assertion assertion)
IAssertionValidatorvalidateTimeInterval in interface IAssertionValidatorpublic boolean validateSignature(org.opensaml.saml2.core.Assertion assertion)
throws org.opensaml.xml.ConfigurationException
IAssertionValidatorvalidateSignature in interface IAssertionValidatorassertion - the assertionorg.opensaml.xml.ConfigurationExceptionCopyright © 2017. All Rights Reserved.