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

Class DefaultClock

impl/src/main/java/io/jsonwebtoken/impl/DefaultClock.java:27–43  ·  view source on GitHub ↗

Default Clock implementation. @since 0.7.0

Source from the content-addressed store, hash-verified

25 * @since 0.7.0
26 */
27public class DefaultClock implements Clock {
28
29 /**
30 * Default static instance that may be shared. It is thread-safe.
31 */
32 public static final Clock INSTANCE = new DefaultClock();
33
34 /**
35 * Simply returns <code>new {@link Date}()</code>.
36 *
37 * @return a new {@link Date} instance.
38 */
39 @Override
40 public Date now() {
41 return new Date();
42 }
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…