com.sun.identity.saml.assertion
Class Advice

java.lang.Object
  extended by com.sun.identity.saml.assertion.AdviceBase
      extended by com.sun.identity.saml.assertion.Advice

public class Advice
extends AdviceBase

The Advice element contains additional information that the issuer wish to provide. This information MAY be ignored by applications without affecting either the semantics or validity. Advice elements MAY be specified in an extension schema.


Field Summary
 
Fields inherited from class com.sun.identity.saml.assertion.AdviceBase
_assertion, _assertionIDRef, _otherElements
 
Constructor Summary
Advice(Element element)
          Constructs an Advice element from an existing XML block.
Advice(List assertionidreference, List assertion, List otherelement)
          Constructor
 
Method Summary
protected  AssertionBase createAssertion(Element assertionElement)
          Creates appropriate Assertion Instance
protected  AssertionIDReference createAssertionIDReference(Element assertionIDRefElement)
          Creates appropriate AssertionIDReference Instance
 
Methods inherited from class com.sun.identity.saml.assertion.AdviceBase
getAssertion, getAssertionIDReference, getOtherElement, toString, toString
 

Constructor Detail

Advice

public Advice(Element element)
       throws SAMLException
Constructs an Advice element from an existing XML block.

Parameters:
element - representing a DOM tree element
Throws:
SAMLException - if there is an error in the sender or in the element definition.

Advice

public Advice(List assertionidreference,
              List assertion,
              List otherelement)
Constructor

Parameters:
assertionidreference - A List of AssertionIDReference.
assertion - A List of Assertion
otherelement - A List of any element defined as any namespace="##other" processContents="lax";
Method Detail

createAssertion

protected AssertionBase createAssertion(Element assertionElement)
                                 throws SAMLException
Description copied from class: AdviceBase
Creates appropriate Assertion Instance

Specified by:
createAssertion in class AdviceBase
Parameters:
assertionElement - the assertion Element
Returns:
the assertion instance
Throws:
SAMLException

createAssertionIDReference

protected AssertionIDReference createAssertionIDReference(Element assertionIDRefElement)
                                                   throws SAMLException
Description copied from class: AdviceBase
Creates appropriate AssertionIDReference Instance

Specified by:
createAssertionIDReference in class AdviceBase
Parameters:
assertionIDRefElement - the assertion ID reference Element
Returns:
the assertion ID reference instance
Throws:
SAMLException