Interface Conditions

All Superinterfaces:
XmlSerializable

@SupportedAll public interface Conditions extends XmlSerializable
The Conditions defines the SAML constructs that place constraints on the acceptable use if SAML Assertions.
  • Method Details

    • getNotOnOrAfter

      Date getNotOnOrAfter()
      Returns the time instant at which the subject can no longer be confirmed.
      Returns:
      the time instant at which the subject can no longer be confirmed.
    • setNotOnOrAfter

      void setNotOnOrAfter(Date value) throws com.sun.identity.saml2.common.SAML2Exception
      Sets the time instant at which the subject can no longer be confirmed.
      Parameters:
      value - the time instant at which the subject can no longer be confirmed.
      Throws:
      com.sun.identity.saml2.common.SAML2Exception - if the object is immutable
    • getConditions

      List<Condition> getConditions()
      Returns a list of Condition
      Returns:
      a list of Condition
    • getAudienceRestrictions

      List<AudienceRestriction> getAudienceRestrictions()
      Returns a list of AudienceRestriction
      Returns:
      a list of AudienceRestriction
    • getOneTimeUses

      List<OneTimeUse> getOneTimeUses()
      Returns a list of OneTimeUse
      Returns:
      a list of OneTimeUse
    • getProxyRestrictions

      List<ProxyRestriction> getProxyRestrictions()
      Returns a list of ProxyRestriction
      Returns:
      a list of ProxyRestriction
    • setConditions

      void setConditions(List<Condition> conditions) throws com.sun.identity.saml2.common.SAML2Exception
      Sets a list of Condition
      Parameters:
      conditions - a list of Condition
      Throws:
      com.sun.identity.saml2.common.SAML2Exception - if the object is immutable
    • setAudienceRestrictions

      void setAudienceRestrictions(List<AudienceRestriction> ars) throws com.sun.identity.saml2.common.SAML2Exception
      Sets a list of AudienceRestriction
      Parameters:
      ars - a list of AudienceRestriction
      Throws:
      com.sun.identity.saml2.common.SAML2Exception - if the object is immutable
    • setOneTimeUses

      void setOneTimeUses(List<OneTimeUse> oneTimeUses) throws com.sun.identity.saml2.common.SAML2Exception
      Sets a list of OneTimeUse
      Parameters:
      oneTimeUses - a list of OneTimeUse
      Throws:
      com.sun.identity.saml2.common.SAML2Exception - if the object is immutable
    • setProxyRestrictions

      void setProxyRestrictions(List<ProxyRestriction> prs) throws com.sun.identity.saml2.common.SAML2Exception
      Sets a list of ProxyRestriction
      Parameters:
      prs - a list of ProxyRestriction
      Throws:
      com.sun.identity.saml2.common.SAML2Exception - if the object is immutable
    • getNotBefore

      Date getNotBefore()
      Returns the time instant before which the subject cannot be confirmed.
      Returns:
      the time instant before which the subject cannot be confirmed.
    • setNotBefore

      void setNotBefore(Date value) throws com.sun.identity.saml2.common.SAML2Exception
      Sets the time instant before which the subject cannot be confirmed.
      Parameters:
      value - the time instant before which the subject cannot be confirmed.
      Throws:
      com.sun.identity.saml2.common.SAML2Exception - if the object is immutable
    • checkDateValidity

      boolean checkDateValidity(long someTime)
      Return true if a specific Date falls within the validity interval of this set of conditions.
      Parameters:
      someTime - a time in milliseconds.
      Returns:
      true if someTime is within the valid interval of the Conditions.
    • checkDateValidityWithSkew

      boolean checkDateValidityWithSkew(long someTime, int skewTime)
      Return true if a specific Date falls within the validity interval of this set of conditions.
      Parameters:
      someTime - a time in milliseconds.
      skewTime - a skew time in seconds.
      Returns:
      true if someTime is within the valid interval of the Conditions.
    • makeImmutable

      void makeImmutable()
      Makes the object immutable
    • isMutable

      boolean isMutable()
      Returns true if the object is mutable
      Returns:
      true if the object is mutable