Class ConditionsBean
- java.lang.Object
-
- org.apache.wss4j.common.saml.bean.ConditionsBean
-
public class ConditionsBean extends Object
Class ConditionsBean represents a SAML Conditions object (can be used to create both SAML v1.1 and v2.0 statements)
-
-
Constructor Summary
Constructors Constructor Description ConditionsBean()Constructor ConditionsBean creates a new ConditionsBean instance.ConditionsBean(int tokenPeriodMinutes)Constructor ConditionsBean creates a new ConditionsBean instance.ConditionsBean(Instant notBefore, Instant notAfter)Constructor ConditionsBean creates a new ConditionsBean instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Method equals ...List<AudienceRestrictionBean>getAudienceRestrictions()Get the audienceRestrictions instancesList<DelegateBean>getDelegates()InstantgetNotAfter()Get the notAfter instanceInstantgetNotBefore()Get the notBefore instanceProxyRestrictionBeangetProxyRestriction()intgetTokenPeriodMinutes()Get the tokenPeriodMinutes of this object.longgetTokenPeriodSeconds()Get the tokenPeriodSeconds of this object.inthashCode()booleanisOneTimeUse()Get whether to include a OneTimeUse Element or not.voidsetAudienceRestrictions(List<AudienceRestrictionBean> audienceRestrictions)Set the audienceRestrictions instancevoidsetDelegates(List<DelegateBean> delegates)voidsetNotAfter(Instant notAfter)Set the notAfter instancevoidsetNotBefore(Instant notBefore)Set the notBefore instancevoidsetOneTimeUse(boolean oneTimeUse)Set whether to include a OneTimeUse Element or not.voidsetProxyRestriction(ProxyRestrictionBean proxyRestriction)voidsetTokenPeriodMinutes(int tokenPeriodMinutes)Set the tokenPeriodMinutes.voidsetTokenPeriodSeconds(long tokenPeriodSeconds)Set the tokenPeriodSeconds.
-
-
-
Constructor Detail
-
ConditionsBean
public ConditionsBean()
Constructor ConditionsBean creates a new ConditionsBean instance.
-
ConditionsBean
public ConditionsBean(Instant notBefore, Instant notAfter)
Constructor ConditionsBean creates a new ConditionsBean instance.- Parameters:
notBefore- The notBefore instancenotAfter- The notAfter instance
-
ConditionsBean
public ConditionsBean(int tokenPeriodMinutes)
Constructor ConditionsBean creates a new ConditionsBean instance.- Parameters:
tokenPeriodMinutes- how long the token is valid for in minutes
-
-
Method Detail
-
getNotBefore
public Instant getNotBefore()
Get the notBefore instance- Returns:
- the notBefore instance
-
setNotBefore
public void setNotBefore(Instant notBefore)
Set the notBefore instance- Parameters:
notBefore- the notBefore instance to set
-
getNotAfter
public Instant getNotAfter()
Get the notAfter instance- Returns:
- the notAfter instance
-
setNotAfter
public void setNotAfter(Instant notAfter)
Set the notAfter instance- Parameters:
notAfter- the notAfter instance to set
-
getTokenPeriodMinutes
public int getTokenPeriodMinutes()
Get the tokenPeriodMinutes of this object.- Returns:
- the tokenPeriodMinutes (type int)
-
setTokenPeriodMinutes
public void setTokenPeriodMinutes(int tokenPeriodMinutes)
Set the tokenPeriodMinutes.- Parameters:
tokenPeriodMinutes- the tokenPeriodMinutes to set
-
getTokenPeriodSeconds
public long getTokenPeriodSeconds()
Get the tokenPeriodSeconds of this object.- Returns:
- the tokenPeriodSeconds (type long)
-
setTokenPeriodSeconds
public void setTokenPeriodSeconds(long tokenPeriodSeconds)
Set the tokenPeriodSeconds.- Parameters:
tokenPeriodSeconds- the tokenPeriodSeconds to set
-
getAudienceRestrictions
public List<AudienceRestrictionBean> getAudienceRestrictions()
Get the audienceRestrictions instances- Returns:
- the audienceRestrictions instances
-
setAudienceRestrictions
public void setAudienceRestrictions(List<AudienceRestrictionBean> audienceRestrictions)
Set the audienceRestrictions instance- Parameters:
audienceRestrictions- the audienceRestrictions instance to set
-
isOneTimeUse
public boolean isOneTimeUse()
Get whether to include a OneTimeUse Element or not. Only applies to SAML2.- Returns:
- whether to include a OneTimeUse Element or not.
-
setOneTimeUse
public void setOneTimeUse(boolean oneTimeUse)
Set whether to include a OneTimeUse Element or not. Only applies to SAML2.- Parameters:
oneTimeUse- whether to include a OneTimeUse Element or not.
-
getProxyRestriction
public ProxyRestrictionBean getProxyRestriction()
-
setProxyRestriction
public void setProxyRestriction(ProxyRestrictionBean proxyRestriction)
-
getDelegates
public List<DelegateBean> getDelegates()
-
setDelegates
public void setDelegates(List<DelegateBean> delegates)
-
equals
public boolean equals(Object o)
Method equals ...
-
-