Class Assertion

java.lang.Object
com.sun.identity.saml.assertion.AssertionBase
com.sun.identity.saml.assertion.Assertion
Direct Known Subclasses:
SecurityAssertion

@SupportedAll public class Assertion extends AssertionBase
This object stands for Assertion element. An Assertion is a package of information that supplies one or more Statement made by an issuer. There are three kinds of assertionsL Authentication, AuthorizationDecision and Attribute assertion.
  • Constructor Details

    • Assertion

      protected Assertion()
      Default constructor Declaring protected to enable extensibility
    • Assertion

      public Assertion(Element assertionElement) throws SAMLException
      Constructs Assertion object from a block of existing XML that has already been built into a DOM.
      Parameters:
      assertionElement - A org.w3c.dom.Element representing DOM tree for Assertion object
      Throws:
      SAMLException - if it could not process the Element properly, implying that there is an error in the sender or in the element definition.
    • Assertion

      public Assertion(String assertionID, String issuer, Date issueInstant, Set<Statement> statements) throws SAMLException
      Constructs Assertion object and populate the data members: assertionID, the issuer, time when assertion issued and a set of Statement(s) in the assertion.
      Parameters:
      assertionID - assertionID attribute contained within this Assertion if null, an assertionID is generated internally.
      issuer - The issuer of this assertion.
      issueInstant - time instant of the issue. It has type dateTime which is built in to the W3C XML Schema Types specification.if null, current time is used.
      statements - set of Statement objects within this Assertion. It could be of type AuthenticationStatement, AuthorizationDecisionStatement and AttributeStatement. Each Assertion can have multiple type of statements in it.
      Throws:
      SAMLException - if there is an error in processing input.
    • Assertion

      public Assertion(String assertionID, String issuer, Date issueInstant, Conditions conditions, Set<Statement> statements) throws SAMLException
      Constructs Assertion object and populate the data members: the assertionID, the issuer, time when assertion issued, the conditions when creating a new assertion and a set of Statement(s) in the assertion.
      Parameters:
      assertionID - AssertionID contained within this Assertion if null its generated internally.
      issuer - The issuer of this assertion.
      issueInstant - time instant of the issue. It has type dateTime which is built in to the W3C XML Schema Types specification. if null, current time is used.
      conditions - Conditions under which the this Assertion is valid.
      statements - Set of Statement objects within this Assertion. It could be of type AuthenticationStatement, AuthorizationDecisionStatement and AttributeStatement. Each Assertion can have multiple type of statements in it.
      Throws:
      SAMLException - if there is an error in processing input.
    • Assertion

      public Assertion(String assertionID, String issuer, Date issueInstant, Conditions conditions, Advice advice, Set<Statement> statements) throws SAMLException
      Constructs Assertion object and populate the data members: the AssertionID, the issuer, time when assertion issued, the conditions when creating a new assertion , Advice applicable to this Assertion and a set of Statement(s) in the assertion.
      Parameters:
      assertionID - AssertionID object contained within this Assertion if null its generated internally.
      issuer - The issuer of this assertion.
      issueInstant - Time instant of the issue. It has type dateTime which is built in to the W3C XML Schema Types specification. if null, current time is used.
      conditions - Conditions under which the this Assertion is valid.
      advice - Advice applicable for this Assertion.
      statements - Set of Statement objects within this Assertion. It could be of type AuthenticationStatement, AuthorizationDecisionStatement and AttributeStatement. Each Assertion can have multiple type of statements in it.
      Throws:
      SAMLException - if there is an error in processing input.
  • Method Details