public class AdviceImpl extends Object implements Advice
Advice
contains any additional information that the
SAML authority wishes to provide. This information may be ignored
by applications without affecting either the semantics or the
validity of the assertion. An Advice
contains a mixture
of zero or more Assertion
, EncryptedAssertion
,
AssertionIDRef
, and AssertionURIRef
.Modifier and Type | Field and Description |
---|---|
static String |
ADVICE_ELEMENT |
static String |
ASSERTION_ELEMENT |
static String |
ASSERTION_ID_REF_ELEMENT |
static String |
ASSERTION_URI_REF_ELEMENT |
static String |
ENCRYPTED_ASSERTION_ELEMENT |
Constructor and Description |
---|
AdviceImpl()
Default constructor
|
AdviceImpl(Element element)
This constructor is used to build
Advice object from a
block of existing XML that has already been built into a DOM. |
AdviceImpl(String xml)
This constructor is used to build
Advice object from a
XML string. |
Modifier and Type | Method and Description |
---|---|
List |
getAdditionalInfo()
Returns a list of additional information
|
List |
getAssertionIDRefs()
Returns a list of
AssertionIDRef |
List |
getAssertions()
Returns a list of
Assertion |
List |
getAssertionURIRefs()
Returns a list of
AssertionURIRef |
List |
getEncryptedAssertions()
Returns a list of
EncryptedAssertion |
boolean |
isMutable()
Returns true if the object is mutable
|
void |
makeImmutable()
Makes the object immutable
|
void |
setAdditionalInfo(List info)
Sets a list of additional information
|
void |
setAssertionIDRefs(List idRefs)
Sets a list of
AssertionIDRef |
void |
setAssertions(List assertions)
Sets a list of
Assertion |
void |
setAssertionURIRefs(List uriRefs)
Sets a list of
AssertionURIRef |
void |
setEncryptedAssertions(List encryptedAssertions)
Sets a list of
EncryptedAssertion |
String |
toXMLString()
Returns a String representation
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation
|
public static String ADVICE_ELEMENT
public static String ASSERTION_URI_REF_ELEMENT
public static String ASSERTION_ID_REF_ELEMENT
public static String ASSERTION_ELEMENT
public static String ENCRYPTED_ASSERTION_ELEMENT
public AdviceImpl()
public AdviceImpl(String xml) throws SAML2Exception
Advice
object from a
XML string.xml
- A java.lang.String
representing
a Advice
objectSAMLException
- if it could not process the XML stringSAML2Exception
public AdviceImpl(Element element) throws SAML2Exception
Advice
object from a
block of existing XML that has already been built into a DOM.element
- A org.w3c.dom.Element
representing
DOM tree for Advice
objectSAMLException
- if it could not process the ElementSAML2Exception
public List getAssertions()
Assertion
getAssertions
in interface Advice
Assertion
public void setAssertions(List assertions) throws SAML2Exception
Assertion
setAssertions
in interface Advice
assertions
- a list of Assertion
SAML2Exception
- if the object is immutablepublic List getAssertionIDRefs()
AssertionIDRef
getAssertionIDRefs
in interface Advice
AssertionIDRef
public void setAssertionIDRefs(List idRefs) throws SAML2Exception
AssertionIDRef
setAssertionIDRefs
in interface Advice
idRefs
- a list of AssertionIDRef
SAML2Exception
- if the object is immutablepublic List getAssertionURIRefs()
AssertionURIRef
getAssertionURIRefs
in interface Advice
AssertionURIRef
public void setAssertionURIRefs(List uriRefs) throws SAML2Exception
AssertionURIRef
setAssertionURIRefs
in interface Advice
uriRefs
- a list of AssertionURIRef
SAML2Exception
- if the object is immutablepublic List getEncryptedAssertions()
EncryptedAssertion
getEncryptedAssertions
in interface Advice
EncryptedAssertion
public void setEncryptedAssertions(List encryptedAssertions) throws SAML2Exception
EncryptedAssertion
setEncryptedAssertions
in interface Advice
encryptedAssertions
- a list of EncryptedAssertion
SAML2Exception
- if the object is immutablepublic List getAdditionalInfo()
getAdditionalInfo
in interface Advice
public void setAdditionalInfo(List info) throws SAML2Exception
setAdditionalInfo
in interface Advice
info
- a list of additional informationSAML2Exception
- if the object is immutablepublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
toXMLString
in interface Advice
includeNSPrefix
- 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.SAML2Exception
- if something is wrong during conversionpublic String toXMLString() throws SAML2Exception
toXMLString
in interface Advice
SAML2Exception
- if something is wrong during conversionpublic void makeImmutable()
makeImmutable
in interface Advice
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.