Package com.sun.identity.saml.assertion
Class Evidence
- java.lang.Object
-
- com.sun.identity.saml.assertion.EvidenceBase
-
- com.sun.identity.saml.assertion.Evidence
-
public class Evidence extends EvidenceBase
TheEvidenceelement specifies an assertion either by reference or by value. An assertion is specified by reference to the value of the assertion'sAssertionIDReferenceelement. An assertion is specified by value by including the entireAssertionobject
-
-
Constructor Summary
Constructors Constructor Description Evidence(Set evidenceContent)Constructs a newEvidence>element containing a set ofAssertionobjects.Evidence(Set assertionIDRef, Set assertion)Constructs an Evidence from a Set ofAssertionandAssertionIDReferenceobjects.Evidence(Element assertionSpecifierElement)Constructs anEvidenceobject from a block of existing XML that has already been built into a DOM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AssertionBasecreateAssertion(Element assertionElement)Creates appropriate Assertion Instanceprotected AssertionIDReferencecreateAssertionIDReference(String assertionID)Creates appropriate AssertionIDReference Instance-
Methods inherited from class com.sun.identity.saml.assertion.EvidenceBase
addAssertion, addAssertionIDReference, getAssertion, getAssertionIDReference, removeAssertion, removeAssertionIDReference, toString, toString
-
-
-
-
Constructor Detail
-
Evidence
public Evidence(Element assertionSpecifierElement) throws SAMLException
Constructs anEvidenceobject from a block of existing XML that has already been built into a DOM.- Parameters:
assertionSpecifierElement- Aorg.w3c.dom.Elementrepresenting DOM tree forEvidenceobject.- 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
public Evidence(Set evidenceContent) throws SAMLException
Constructs a newEvidence>element containing a set ofAssertionobjects.- Parameters:
evidenceContent- A set ofAssertionandAssertionIDReferenceobjects to be put within theEvidenceelement. The same Set contains both type of elements.- Throws:
SAMLException- if the Set is empty or has invalid object.
-
Evidence
public Evidence(Set assertionIDRef, Set assertion) throws SAMLException
Constructs an Evidence from a Set ofAssertionandAssertionIDReferenceobjects.- Parameters:
assertionIDRef- Set ofAssertionIDReferenceobjects.assertion- Set ofAssertionobjects.- Throws:
SAMLException- if either Set is empty or has invalid object.
-
-
Method Detail
-
createAssertion
protected AssertionBase createAssertion(Element assertionElement) throws SAMLException
Description copied from class:EvidenceBaseCreates appropriate Assertion Instance- Specified by:
createAssertionin classEvidenceBase- Parameters:
assertionElement- the assertion Element- Returns:
- the assertion instance
- Throws:
SAMLException
-
createAssertionIDReference
protected AssertionIDReference createAssertionIDReference(String assertionID) throws SAMLException
Description copied from class:EvidenceBaseCreates appropriate AssertionIDReference Instance- Specified by:
createAssertionIDReferencein classEvidenceBase- Parameters:
assertionID- the assertion ID String- Returns:
- the AssertionIDReference instance
- Throws:
SAMLException
-
-