Class ConditionsBean
java.lang.Object
org.apache.wss4j.common.saml.bean.ConditionsBean
Class ConditionsBean represents a SAML Conditions object (can be used to create
both SAML v1.1 and v2.0 statements)
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor 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
Modifier and TypeMethodDescriptionbooleanMethod equals ...Get the audienceRestrictions instancesGet the notAfter instanceGet the notBefore instanceintGet the tokenPeriodMinutes of this object.longGet the tokenPeriodSeconds of this object.inthashCode()booleanGet 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 Details
-
ConditionsBean
public ConditionsBean()Constructor ConditionsBean creates a new ConditionsBean instance. -
ConditionsBean
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 Details
-
getNotBefore
Get the notBefore instance- Returns:
- the notBefore instance
-
setNotBefore
Set the notBefore instance- Parameters:
notBefore- the notBefore instance to set
-
getNotAfter
Get the notAfter instance- Returns:
- the notAfter instance
-
setNotAfter
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
Get the audienceRestrictions instances- Returns:
- the audienceRestrictions instances
-
setAudienceRestrictions
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
-
setProxyRestriction
-
getDelegates
-
setDelegates
-
equals
Method equals ... -
hashCode
public int hashCode()
-