Class ProxyRestrictionImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.ProxyRestrictionImpl
-
- All Implemented Interfaces:
ConditionAbstract,ProxyRestriction
public class ProxyRestrictionImpl extends Object implements ProxyRestriction
TheProxyRestrictionspecifies 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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUDIENCE_ELEMENTstatic StringCOUNT_ATTRstatic StringPROXY_RESTRICTION_ELEMENT
-
Constructor Summary
Constructors Constructor Description ProxyRestrictionImpl()Default constructorProxyRestrictionImpl(String xml)This constructor is used to buildProxyRestrictionobject from a XML string.ProxyRestrictionImpl(Element element)This constructor is used to buildProxyRestrictionobject from a block of existing XML that has already been built into a DOM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetAudience()Returns the list of audiences to whom the asserting party permits new assertions to be issued on the basis of this assertion.intgetCount()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.booleanisMutable()Returns true if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetAudience(List audiences)Sets the list of audiences to whom the asserting party permits new assertions to be issued on the basis of this assertion.voidsetCount(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.StringtoXMLString()Returns a String representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation
-
-
-
Field Detail
-
PROXY_RESTRICTION_ELEMENT
public static final String PROXY_RESTRICTION_ELEMENT
- See Also:
- Constant Field Values
-
COUNT_ATTR
public static final String COUNT_ATTR
- See Also:
- Constant Field Values
-
AUDIENCE_ELEMENT
public static final String AUDIENCE_ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProxyRestrictionImpl
public ProxyRestrictionImpl()
Default constructor
-
ProxyRestrictionImpl
public ProxyRestrictionImpl(String xml) throws SAML2Exception
This constructor is used to buildProxyRestrictionobject from a XML string.- Parameters:
xml- Ajava.lang.Stringrepresenting aProxyRestrictionobject- Throws:
SAML2Exception- if it could not process the XML string
-
ProxyRestrictionImpl
public ProxyRestrictionImpl(Element element) throws SAML2Exception
This constructor is used to buildProxyRestrictionobject from a block of existing XML that has already been built into a DOM.- Parameters:
element- Aorg.w3c.dom.Elementrepresenting DOM tree forProxyRestrictionobject- Throws:
SAML2Exception- if it could not process the Element
-
-
Method Detail
-
getCount
public 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.- Specified by:
getCountin interfaceProxyRestriction- Returns:
- the count number
-
setCount
public void setCount(int value) throws SAML2ExceptionSets 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.- Specified by:
setCountin interfaceProxyRestriction- Parameters:
value- the count number- Throws:
SAML2Exception- if the object is immutable
-
getAudience
public List getAudience()
Returns the list of audiences to whom the asserting party permits new assertions to be issued on the basis of this assertion.- Specified by:
getAudiencein interfaceProxyRestriction- Returns:
- a list of
Stringrepresented audiences
-
setAudience
public void setAudience(List audiences) throws SAML2Exception
Sets the list of audiences to whom the asserting party permits new assertions to be issued on the basis of this assertion.- Specified by:
setAudiencein interfaceProxyRestriction- Parameters:
audiences- a list ofStringrepresented audiences- Throws:
SAML2Exception- if the object is immutable
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns a String representation- Specified by:
toXMLStringin interfaceConditionAbstract- Parameters:
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.- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation- Specified by:
toXMLStringin interfaceConditionAbstract- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceConditionAbstract
-
isMutable
public boolean isMutable()
Returns true if the object is mutable- Specified by:
isMutablein interfaceConditionAbstract- Returns:
- true if the object is mutable
-
-