All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.jsonwebtoken.Clock Maven / Gradle / Ivy

Go to download

Legacy dependency. Please update your dependencies as documented here: https://github.com/jwtk/jjwt#installation

There is a newer version: 0.12.6
Show newest version
package io.jsonwebtoken;

import java.util.Date;

/**
 * A clock represents a time source that can be used when creating and verifying JWTs.
 *
 * @since 0.7.0
 */
public interface Clock {

    /**
     * Returns the clock's current timestamp at the instant the method is invoked.
     *
     * @return the clock's current timestamp at the instant the method is invoked.
     */
    Date now();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy