public abstract class AdviceBase extends Object
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.Constructor and Description |
---|
AdviceBase(Element element)
Constructs an Advice element from an existing XML block.
|
AdviceBase(List assertionidreference,
List assertion,
List otherelement)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract AssertionBase |
createAssertion(Element assertionElement)
Creates appropriate Assertion Instance
|
protected abstract AssertionIDReference |
createAssertionIDReference(Element assertionIDRefElement)
Creates appropriate AssertionIDReference Instance
|
List |
getAssertion()
Gets access to the Assertion in this Advice element
|
List |
getAssertionIDReference()
Returns access to the
AssertionIDReference in this
Advice element. |
List |
getOtherElement()
Gets other element contained within the Advice element
|
String |
toString()
Creates a String representation of the
Advice element |
String |
toString(boolean includeNS,
boolean declareNS)
Returns a String representation of the
<saml:Advice> element. |
public AdviceBase(Element element) throws SAMLException
element
- representing a DOM tree elementSAMLException
- if there is an error in the sender or in the
element definition.protected abstract AssertionBase createAssertion(Element assertionElement) throws SAMLException
assertionElement
- the assertion ElementSAMLException
protected abstract AssertionIDReference createAssertionIDReference(Element assertionIDRefElement) throws SAMLException
assertionIDRefElement
- the assertion ID reference ElementSAMLException
public List getAssertionIDReference()
AssertionIDReference
in this
Advice element.AssertionIDReference
in this Advice
element.public List getAssertion()
public List getOtherElement()
public String toString()
Advice
elementpublic String toString(boolean includeNS, boolean declareNS)
<saml:Advice>
element.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.Copyright © 2010-2018, ForgeRock All Rights Reserved.