|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object 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 | |
Evidence(org.w3c.dom.Element assertionSpecifierElement)
Constructs an Evidence object from a block of existing XML
that has already been built into a DOM. |
|
Evidence(java.util.Set evidenceContent)
Constructs a new Evidence> element containing a
set of Assertion objects. |
|
Evidence(java.util.Set assertionIDRef,
java.util.Set assertion)
Constructs an Evidence from a Set of Assertion and
AssertionIDReference objects. |
Method Summary | |
boolean |
addAssertion(Assertion assertion)
Adds an Assertion object into the Evidence object. |
boolean |
addAssertionIDReference(AssertionIDReference assertionIDRef)
Adds an AssertionIDReference object into the
Evidence object. |
java.util.Set |
getAssertion()
Get java.util.Set of Assertion
objects in the Evidence |
java.util.Set |
getAssertionIDReference()
Get java.util.Set of AssertionIDReference
objects in the Evidence |
boolean |
removeAssertion(Assertion assertion)
Removes an Assertion object from the Evidence
object. |
boolean |
removeAssertionIDReference(AssertionIDReference assertionIDRef)
Removes an AssertionIDReference object from the
Evidence object. |
java.lang.String |
toString()
Returns a String representation of the element. |
java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Returns a String representation of the <Evidence>
element (or of the <Evidence> element). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Evidence(org.w3c.dom.Element assertionSpecifierElement) throws SAMLException
Evidence
object from a block of existing XML
that has already been built into a DOM.
assertionSpecifierElement
- A org.w3c.dom.Element
representing DOM tree for Evidence
object.
SAMLException
- if it could not process the Element properly,
implying that there is an error in the sender or in the
element definition.public Evidence(java.util.Set evidenceContent) throws SAMLException
Evidence>
element containing a
set of Assertion
objects.
evidenceContent
- A set of Assertion
and
AssertionIDReference
objects to be put within the
Evidence
element. The same Set contains both type
of elements.
SAMLException
- if the Set is empty or has invalid object.public Evidence(java.util.Set assertionIDRef, java.util.Set assertion) throws SAMLException
Assertion
and
AssertionIDReference
objects.
assertionIDRef
- Set of AssertionIDReference
objects.assertion
- Set of Assertion
objects.
SAMLException
- if either Set is empty or has invalid object.Method Detail |
public boolean addAssertion(Assertion assertion)
Assertion
object into the Evidence object.
assertion
- Assertion
to be added
public boolean addAssertionIDReference(AssertionIDReference assertionIDRef)
AssertionIDReference
object into the
Evidence
object.
assertionIDRef
- AssertionIDReference
to be added.
public boolean removeAssertion(Assertion assertion)
Assertion
object from the Evidence
object.
assertion
- Assertion
to be removed.
Assertion
is the only element inside the
Evidence
.public boolean removeAssertionIDReference(AssertionIDReference assertionIDRef)
AssertionIDReference
object from the
Evidence
object.
assertionIDRef
- AssertionIDReference
to be removed
AssertionIDReference
is the only element
inside the Evidence
.public java.util.Set getAssertionIDReference()
java.util.Set
of AssertionIDReference
objects in the Evidence
java.util.Set
of AssertionIDReference
objects within this Evidence.public java.util.Set getAssertion()
java.util.Set
of Assertion
objects in the Evidence
java.util.Set
of Assertion
objects within this Evidence.public java.lang.String toString()
<saml:Evidence>
.public java.lang.String toString(boolean includeNS, boolean declareNS)
<Evidence>
element (or of the <Evidence>
element).
includeNS
- Determines whether or not the namespace qualifier is
prepended to the Element
when converted.declareNS
- Determines whether or not the namespace is declared
within the Element.
Evidence
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |