it.eng.rdlab.soa3.assertion.validation
Interface IAssertionValidator

All Known Implementing Classes:
Assertionsvalidation

public interface IAssertionValidator


Method Summary
 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
 

Method Detail

configure

void configure(ConfigurationBean configuration)

validateAssertions

org.opensaml.saml2.core.Assertion validateAssertions(String xml)
                                                     throws AssertionValidationException,
                                                            org.opensaml.xml.ConfigurationException
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

Parameters:
xml - SAML assertion in String
Returns:
Assertion object if signature is valid or null if the signature is invalid
Throws:
AssertionValidationException - in case of any exceptions
org.opensaml.xml.ConfigurationException - if an invalid configuration has been inserted

getAssertionObject

org.opensaml.saml2.core.Assertion getAssertionObject(String assertionString)
Generates an assertion object from a string

Parameters:
assertionString -
Returns:
an assertion object if the generation process has been correctly completed, null otherwise

validateTimeInterval

boolean validateTimeInterval(org.opensaml.saml2.core.Assertion assertion)
Validates the lifetime of the assertion basing on the notBefore and notOnOrAfter properties

Parameters:
assertion -
Returns:
true if the validation is OK, false otherwise

validateSignature

boolean validateSignature(org.opensaml.saml2.core.Assertion assertion)
                          throws org.opensaml.xml.ConfigurationException
Validates the signature of the assertion

Parameters:
assertion - the assertion
Returns:
true if the signature is valid, false otherwise
Throws:
org.opensaml.xml.ConfigurationException


Copyright © 2013. All Rights Reserved.