Package com.sun.identity.saml.assertion
Class AdviceBase
java.lang.Object
com.sun.identity.saml.assertion.AdviceBase
- Direct Known Subclasses:
Advice
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.
This class is an abstract base class for all Advice implementations and
encapsulates common functionality.-
Field Summary
-
Constructor Summary
ConstructorDescriptionAdviceBase
(List assertionidreference, List assertion, List otherelement) ConstructorAdviceBase
(Element element) Constructs an Advice element from an existing XML block. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AssertionBase
createAssertion
(Element assertionElement) Creates appropriate Assertion Instanceprotected abstract AssertionIDReference
createAssertionIDReference
(Element assertionIDRefElement) Creates appropriate AssertionIDReference InstanceGets access to the Assertion in this Advice elementReturns access to theAssertionIDReference
in this Advice element.Gets other element contained within the Advice elementtoString()
Creates a String representation of theAdvice
elementtoString
(boolean includeNS, boolean declareNS) Returns a String representation of the<saml:Advice>
element.
-
Field Details
-
_assertionIDRef
-
_assertion
-
_otherElements
-
-
Constructor Details
-
AdviceBase
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.
-
AdviceBase
Constructor- Parameters:
assertionidreference
- A List ofAssertionIDReference
.assertion
- A List of Assertionotherelement
- A List of any element defined asany namespace="##other" processContents="lax"
;
-
-
Method Details
-
createAssertion
Creates appropriate Assertion Instance- Parameters:
assertionElement
- the assertion Element- Returns:
- the assertion instance
- Throws:
SAMLException
-
createAssertionIDReference
protected abstract AssertionIDReference createAssertionIDReference(Element assertionIDRefElement) throws SAMLException Creates appropriate AssertionIDReference Instance- Parameters:
assertionIDRefElement
- the assertion ID reference Element- Returns:
- the assertion ID reference instance
- Throws:
SAMLException
-
getAssertionIDReference
Returns access to theAssertionIDReference
in this Advice element.- Returns:
- A list of
AssertionIDReference
in this Advice element.
-
getAssertion
Gets access to the Assertion in this Advice element- Returns:
- A list of Assertion in this Advice element
-
getOtherElement
Gets other element contained within the Advice element- Returns:
- A list of other elements.
-
toString
Creates a String representation of theAdvice
element -
toString
Returns a String representation of the<saml:Advice>
element.- Parameters:
includeNS
- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared within the Element.- Returns:
- A string containing the valid XML for this element
-