| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--com.sun.identity.saml.assertion.Assertion
        |
        +--com.sun.identity.liberty.ws.security.SecurityAssertion
The SecurityAssertion class provides an extension to
 Assertion class to support ID-WSF
 ResourceAccessStatement and
 SessionContextStatement.
| Constructor Summary | |
| SecurityAssertion(org.w3c.dom.Element assertionElement)This constructor creates a SecurityAssertionobject
 from a DOM Element. | |
| SecurityAssertion(java.lang.String assertionID,
                  java.lang.String issuer,
                  java.util.Date issueInstant,
                  Conditions conditions,
                  Advice advice,
                  java.util.Set statements)Constructs SecurityAssertionobject with theassertionID, the issuer, time when assertion issued,
 the conditions when creating a new assertion,Adviceapplicable to thisAssertionand aSetofStatement(s) in the assertion. | |
| SecurityAssertion(java.lang.String assertionID,
                  java.lang.String issuer,
                  java.util.Date issueInstant,
                  Conditions conditions,
                  java.util.Set statements)Constructs SecurityAssertionobject with theassertionID, the issuer, time when assertion issued, the
 conditions when creating a new assertion and aSetofStatement(s) in the assertion. | |
| SecurityAssertion(java.lang.String assertionID,
                  java.lang.String issuer,
                  java.util.Date issueInstant,
                  java.util.Set statements)Constructs SecurityAssertionobject with theassertionID, the issuer, time when assertion issued
 and aSetofStatement(s) in the assertion. | |
| Method Summary | |
|  Subject | getBearerSubject()Determines if the SecurityAssertioncontains SAML Bearer
 confirmation method. | 
|  boolean | isBearer()Determines if the SecurityAssertioncontains SAML Bearer
 confirmation method. | 
|  java.lang.String | toString()Create a String representation of the element. | 
|  java.lang.String | toString(boolean includeNS,
         boolean declareNS)Creates a String representation of the <Assertion>
 element. | 
| Methods inherited from class com.sun.identity.saml.assertion.Assertion | 
| addStatement, getAdvice, getAssertionID, getConditions, getIssueInstant, getIssuer, getMajorVersion, getMinorVersion, getSignature, getStatement, isSignatureValid, isSigned, isTimeValid, setAdvice, setConditions, setMajorVersion, setMinorVersion, setSignature, signXML, signXML | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public SecurityAssertion(org.w3c.dom.Element assertionElement)
                  throws SAMLException
SecurityAssertion object
 from a DOM Element.assertionElement - A org.w3c.dom.Element representing 
        DOM tree for Assertion objectSAMLException - if it could not process the Element properly, 
            implying that there is an error in the sender or in the
            element definition.
public SecurityAssertion(java.lang.String assertionID,
                         java.lang.String issuer,
                         java.util.Date issueInstant,
                         java.util.Set statements)
                  throws SAMLException
SecurityAssertion object with the
 assertionID, the issuer, time when assertion issued
 and a Set of Statement(s) in the assertion.assertionID - assertionID attribute contained within
        this Assertion if null, an assertionID
        is generated internally.issuer - String representing 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.SAMLException - issuer is null or the size of statements is 0.
public SecurityAssertion(java.lang.String assertionID,
                         java.lang.String issuer,
                         java.util.Date issueInstant,
                         Conditions conditions,
                         java.util.Set statements)
                  throws SAMLException
SecurityAssertion object with the
 assertionID, the issuer, time when assertion issued, the
 conditions when creating a new assertion and a Set of
 Statement(s) in the assertion.assertionID - String representing AssertionID
 contained within this Assertion if null its generated
 internally.issuer - String representing 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.SAMLException - issuer is null or the size of statements is 0.
public SecurityAssertion(java.lang.String assertionID,
                         java.lang.String issuer,
                         java.util.Date issueInstant,
                         Conditions conditions,
                         Advice advice,
                         java.util.Set statements)
                  throws SAMLException
SecurityAssertion object with 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.assertionID - AssertionID object contained within this 
        Assertion if null its generated internally.issuer - String representing 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.SAMLException - issuer is null or the size of statements is 0.| Method Detail | 
public boolean isBearer()
SecurityAssertion contains SAML Bearer
 confirmation method.SecurityAssertion contains SAML Bearer
 confirmation.public Subject getBearerSubject()
SecurityAssertion contains SAML Bearer
 confirmation method. If it is, return its Subject. Otherwise, return
 null.SecurityAssertion contains SAML
         Bearer confirmation.public java.lang.String toString()
toString in class Assertion<saml:Assertion>.
public java.lang.String toString(boolean includeNS,
                                 boolean declareNS)
<Assertion>
 element.- 
- Overrides:
- toStringin class- Assertion
 
- 
- Parameters:
- includeNS- if true prepends all elements by their Namespace 
        name example- <saml:Assertion>
- declareNS- if true includes the namespace within the generated
        XML.
- Returns:
- A string containing the valid XML for this element.
 
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||