public class ProxyRestrictionImpl extends Object implements ProxyRestriction
ProxyRestriction
specifies limitations that the
asserting party imposes on relying parties that in turn wish to
act as asserting parties and issue subsequent assertions of their
own on the basis of the information contained in the original
assertion. A relying party acting as an asserting party must not
issue an assertion that itself violates the restrictions specified
in this condition on the basis of an assertion containing such
a condition.Modifier and Type | Field and Description |
---|---|
static String |
AUDIENCE_ELEMENT |
static String |
COUNT_ATTR |
static String |
PROXY_RESTRICTION_ELEMENT |
Constructor and Description |
---|
ProxyRestrictionImpl()
Default constructor
|
ProxyRestrictionImpl(Element element)
This constructor is used to build
ProxyRestriction
object from a block of existing XML that has already been built
into a DOM. |
ProxyRestrictionImpl(String xml)
This constructor is used to build
ProxyRestriction
object from a XML string. |
Modifier and Type | Method and Description |
---|---|
List |
getAudience()
Returns the list of audiences to whom the asserting party
permits new assertions to be issued on the basis of this
assertion.
|
int |
getCount()
Returns the maximum number of indirections that the asserting
party permits to exist between this assertion and an assertion
which has ultimately been issued on the basis of it.
|
boolean |
isMutable()
Returns true if the object is mutable
|
void |
makeImmutable()
Makes the object immutable
|
void |
setAudience(List audiences)
Sets the list of audiences to whom the asserting party permits
new assertions to be issued on the basis of this assertion.
|
void |
setCount(int value)
Sets the maximum number of indirections that the asserting
party permits to exist between this assertion and an assertion
which has ultimately been issued on the basis of it.
|
String |
toXMLString()
Returns a String representation
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation
|
public static final String PROXY_RESTRICTION_ELEMENT
public static final String COUNT_ATTR
public static final String AUDIENCE_ELEMENT
public ProxyRestrictionImpl()
public ProxyRestrictionImpl(String xml) throws SAML2Exception
ProxyRestriction
object from a XML string.xml
- A java.lang.String
representing
a ProxyRestriction
objectSAML2Exception
- if it could not process the XML stringpublic ProxyRestrictionImpl(Element element) throws SAML2Exception
ProxyRestriction
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 ProxyRestriction
objectSAML2Exception
- if it could not process the Elementpublic int getCount()
getCount
in interface ProxyRestriction
public void setCount(int value) throws SAML2Exception
setCount
in interface ProxyRestriction
value
- the count numberSAML2Exception
- if the object is immutablepublic List getAudience()
getAudience
in interface ProxyRestriction
String
represented audiencespublic void setAudience(List audiences) throws SAML2Exception
setAudience
in interface ProxyRestriction
audiences
- a list of String
represented audiencesSAML2Exception
- if the object is immutablepublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
toXMLString
in interface ConditionAbstract
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 ConditionAbstract
SAML2Exception
- if something is wrong during conversionpublic void makeImmutable()
makeImmutable
in interface ConditionAbstract
public boolean isMutable()
isMutable
in interface ConditionAbstract
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.