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

Method setExpiration

api/src/main/java/io/jsonwebtoken/ClaimsMutator.java:129–129  ·  view source on GitHub ↗

Sets the JWT exp (expiration) timestamp claim. A null value will remove the property from the JSON Claims map. A JWT obtained after this timestamp should not be used. @param exp the JWT {@code exp

(Date exp)

Source from the content-addressed store, hash-verified

127 * {@link #expiration(Date)}. This method will be removed before the JJWT 1.0 release.
128 */
129 @Deprecated
130 T setExpiration(Date exp);
131
132 /**

Callers 1

requireExpirationMethod · 0.65

Implementers 2

DefaultJwtBuilderimpl/src/main/java/io/jsonwebtoken/imp
DelegatingClaimsMutatorimpl/src/main/java/io/jsonwebtoken/imp

Calls

no outgoing calls

Tested by

no test coverage detected