Package com.sun.identity.saml.assertion
Class AdviceBase
- java.lang.Object
-
- com.sun.identity.saml.assertion.AdviceBase
-
- Direct Known Subclasses:
Advice
@SupportedAll public abstract class AdviceBase extends Object
TheAdvice
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
Fields Modifier and Type Field Description protected List
_assertion
protected List
_assertionIDRef
protected List
_otherElements
-
Constructor Summary
Constructors Constructor Description AdviceBase(List assertionidreference, List assertion, List otherelement)
ConstructorAdviceBase(Element element)
Constructs an Advice element from an existing XML block.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AssertionBase
createAssertion(Element assertionElement)
Creates appropriate Assertion Instanceprotected abstract AssertionIDReference
createAssertionIDReference(Element assertionIDRefElement)
Creates appropriate AssertionIDReference InstanceList
getAssertion()
Gets access to the Assertion in this Advice elementList
getAssertionIDReference()
Returns access to theAssertionIDReference
in this Advice element.List
getOtherElement()
Gets other element contained within the Advice elementString
toString()
Creates a String representation of theAdvice
elementString
toString(boolean includeNS, boolean declareNS)
Returns a String representation of the<saml:Advice>
element.
-
-
-
Constructor Detail
-
AdviceBase
public AdviceBase(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.
-
-
Method Detail
-
createAssertion
protected abstract AssertionBase createAssertion(Element assertionElement) throws SAMLException
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
public List getAssertionIDReference()
Returns access to theAssertionIDReference
in this Advice element.- Returns:
- A list of
AssertionIDReference
in this Advice element.
-
getAssertion
public List getAssertion()
Gets access to the Assertion in this Advice element- Returns:
- A list of Assertion in this Advice element
-
getOtherElement
public List getOtherElement()
Gets other element contained within the Advice element- Returns:
- A list of other elements.
-
toString
public String toString()
Creates a String representation of theAdvice
element
-
toString
public String toString(boolean includeNS, boolean declareNS)
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
-
-