001package com.nimbusds.jwt.proc;
002
003
004import com.nimbusds.jose.util.DateUtils;
005
006
007/**
008 * Clock skew aware interface.
009 *
010 * @see DateUtils
011 */
012public interface ClockSkewAware {
013        
014
015        /**
016         * Gets the maximum acceptable clock skew.
017         *
018         * @return The maximum acceptable clock skew, in seconds. Zero if none.
019         */
020        int getMaxClockSkew();
021
022
023        /**
024         * Sets the maximum acceptable clock skew.
025         *
026         * @param maxClockSkewSeconds The maximum acceptable clock skew, in
027         *                            seconds. Zero if none.
028         */
029        void setMaxClockSkew(final int maxClockSkewSeconds);
030}