Class TimeConstraint

  • All Implemented Interfaces:
    Constraint

    public class TimeConstraint
    extends LeafConstraint
    The class that represents the basic set of constraints + max_age.
    Since:
    2.63
    • Constructor Detail

      • TimeConstraint

        public TimeConstraint()
    • Method Detail

      • getMaxAge

        public long getMaxAge()
        Get the value of "max_age".
        Returns:
        The value of "max_age".
      • setMaxAge

        public void setMaxAge​(long maxAge)
        Set the value of "max_age".
        Parameters:
        essential - The value of "max_age".
      • extract

        public static TimeConstraint extract​(Map<?,​?> map,
                                             String key)
                                      throws ConstraintException
        Create a TimeConstraint instance from an object in the given map.
        Parameters:
        map - A map that may contain a constraint.
        key - The key that identifies the object in the map.
        Returns:
        A TimeConstraint instance that represents a constraint. Even if the map does not contain the given key, an instance of TimeConstraint is returned.
        Throws:
        ConstraintException - The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).