Package com.sun.identity.saml.assertion
Class Evidence
java.lang.Object
com.sun.identity.saml.assertion.EvidenceBase
com.sun.identity.saml.assertion.Evidence
The
Evidence
element specifies an assertion either by
reference or by value. An assertion is specified by reference to the value of
the assertion's AssertionIDReference
element.
An assertion is specified by value by including the entire
Assertion
object-
Constructor Summary
ConstructorDescriptionConstructs a newEvidence
element containing a set ofAssertion
objects.Constructs an Evidence from a Set ofAssertion
andAssertionIDReference
objects.Constructs anEvidence
object from a block of existing XML that has already been built into a DOM. -
Method Summary
Modifier and TypeMethodDescriptionprotected AssertionBase
createAssertion
(Element assertionElement) Creates appropriate Assertion Instanceprotected AssertionIDReference
createAssertionIDReference
(String assertionID) Creates appropriate AssertionIDReference InstanceMethods inherited from class com.sun.identity.saml.assertion.EvidenceBase
addAssertion, addAssertionIDReference, getAssertion, getAssertionIDReference, removeAssertion, removeAssertionIDReference, toString, toString
-
Constructor Details
-
Evidence
Constructs anEvidence
object from a block of existing XML that has already been built into a DOM.- Parameters:
assertionSpecifierElement
- Aorg.w3c.dom.Element
representing DOM tree forEvidence
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.
-
Evidence
Constructs a newEvidence
element containing a set ofAssertion
objects.- Parameters:
evidenceContent
- A set ofAssertion
andAssertionIDReference
objects to be put within theEvidence
element. The same Set contains both type of elements.- Throws:
SAMLException
- if the Set is empty or has invalid object.
-
Evidence
Constructs an Evidence from a Set ofAssertion
andAssertionIDReference
objects.- Parameters:
assertionIDRef
- Set ofAssertionIDReference
objects.assertion
- Set ofAssertion
objects.- Throws:
SAMLException
- if either Set is empty or has invalid object.
-
-
Method Details
-
createAssertion
Description copied from class:EvidenceBase
Creates appropriate Assertion Instance- Specified by:
createAssertion
in classEvidenceBase
- Parameters:
assertionElement
- the assertion Element- Returns:
- the assertion instance
- Throws:
SAMLException
-
createAssertionIDReference
Description copied from class:EvidenceBase
Creates appropriate AssertionIDReference Instance- Specified by:
createAssertionIDReference
in classEvidenceBase
- Parameters:
assertionID
- the assertion ID String- Returns:
- the AssertionIDReference instance
- Throws:
SAMLException
-