com.sun.identity.saml2.assertion
Interface Evidence


public interface Evidence

The Evidence element contains one or more assertions or assertion references that the SAML authority relied on in issuing the authorization decision. It has the EvidenceType complex type.

 <complexType name="EvidenceType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice maxOccurs="unbounded">
         <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}AssertionIDRef"/>
         <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}AssertionURIRef"/>
         <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Assertion"/>
         <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}EncryptedAssertion"/>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 


Method Summary
 java.util.List getAssertion()
          Returns the Assertion(s) in the element.
 java.util.List getAssertionIDRef()
          Returns the AssertionIDRef in the element.
 java.util.List getAssertionURIRef()
          Returns the AssertionURIRef(s) in the element.
 java.util.List getEncryptedAssertion()
          Returns the EncryptedAssertion(s) in the element.
 boolean isMutable()
          Returns the mutability of the object.
 void makeImmutable()
          Makes the object immutable.
 void setAssertion(java.util.List value)
          Sets the Assertion(s) in the element.
 void setAssertionIDRef(java.util.List value)
          Sets the AssertionIDRef(s) in the element.
 void setAssertionURIRef(java.util.List value)
          Sets the AssertionURIRef(s) in the element.
 void setEncryptedAssertion(java.util.List value)
          Sets the EncryptedAssertion(s) in the element.
 java.lang.String toXMLString()
          Returns a String representation of the element.
 java.lang.String toXMLString(boolean includeNS, boolean declareNS)
          Returns a String representation of the element.
 

Method Detail

makeImmutable

public void makeImmutable()
Makes the object immutable.


isMutable

public boolean isMutable()
Returns the mutability of the object.

Returns:
true if the object is mutable; false otherwise.

getAssertionIDRef

public java.util.List getAssertionIDRef()
Returns the AssertionIDRef in the element.

Returns:
List of Strings representing the AssertionIDRefs in the Evidence.
See Also:
setAssertionIDRef(List)

setAssertionIDRef

public void setAssertionIDRef(java.util.List value)
                       throws SAML2Exception
Sets the AssertionIDRef(s) in the element.

Parameters:
value - List of Strings representing new AssertionIDRef(s).
Throws:
SAML2Exception - if the object is immutable.
See Also:
getAssertionIDRef()

getAssertionURIRef

public java.util.List getAssertionURIRef()
Returns the AssertionURIRef(s) in the element.

Returns:
List of Strings representing the AssertionURIRef(s) in the Evidence.
See Also:
setAssertionURIRef(List)

setAssertionURIRef

public void setAssertionURIRef(java.util.List value)
                        throws SAML2Exception
Sets the AssertionURIRef(s) in the element.

Parameters:
value - List of Strings representing new AssertionURIRef(s).
Throws:
SAML2Exception - if the object is immutable.
See Also:
getAssertionURIRef()

getAssertion

public java.util.List getAssertion()
Returns the Assertion(s) in the element.

Returns:
List of Assertion(s) in the Evidence.
See Also:
setAssertion(List)

setAssertion

public void setAssertion(java.util.List value)
                  throws SAML2Exception
Sets the Assertion(s) in the element.

Parameters:
value - List of new Assertion(s).
Throws:
SAML2Exception - if the object is immutable.
See Also:
getAssertion()

getEncryptedAssertion

public java.util.List getEncryptedAssertion()
Returns the EncryptedAssertion(s) in the element.

Returns:
List of EncryptedAssertion(s) in the Evidence.
See Also:
setEncryptedAssertion(List)

setEncryptedAssertion

public void setEncryptedAssertion(java.util.List value)
                           throws SAML2Exception
Sets the EncryptedAssertion(s) in the element.

Parameters:
value - List of new EncryptedAssertion(s).
Throws:
SAML2Exception - if the object is immutable.
See Also:
getEncryptedAssertion()

toXMLString

public java.lang.String toXMLString()
                             throws SAML2Exception
Returns a String representation of the element.

Returns:
A string containing the valid XML for this element. By default name space name is prepended to the element name.
Throws:
SAML2Exception - if the object does not conform to the schema.

toXMLString

public java.lang.String toXMLString(boolean includeNS,
                                    boolean declareNS)
                             throws SAML2Exception
Returns a String representation of the element.

Parameters:
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.
Returns:
A string containing the valid XML for this element
Throws:
SAML2Exception - if the object does not conform to the schema.


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.