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