MCPcopy Create free account
hub / github.com/jwtk/jjwt / Clock

Interface Clock

api/src/main/java/io/jsonwebtoken/Clock.java:25–33  ·  view source on GitHub ↗

A clock represents a time source that can be used when creating and verifying JWTs. @since 0.7.0

Source from the content-addressed store, hash-verified

23 * @since 0.7.0
24 */
25public interface Clock {
26
27 /**
28 * Returns the clock's current timestamp at the instant the method is invoked.
29 *
30 * @return the clock's current timestamp at the instant the method is invoked.
31 */
32 Date now();
33}

Callers 1

parseMethod · 0.65

Implementers 2

DefaultClockimpl/src/main/java/io/jsonwebtoken/imp
FixedClockimpl/src/main/java/io/jsonwebtoken/imp

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…