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 Details

    • 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 instance
      notAfter - 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

      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 ...
      Overrides:
      equals in class Object
      Parameters:
      o - of type Object
      Returns:
      boolean
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      the hashcode of this object