T - the type of mutatorpublic interface ClaimsMutator<T extends ClaimsMutator>
Claims instance.JwtBuilder,
Claims| 限定符和类型 | 方法和说明 |
|---|---|
T |
setAudience(java.lang.String aud)
Sets the JWT
aud (audience) value. |
T |
setDescription(java.lang.String description) |
T |
setExpiration(java.util.Date exp)
Sets the JWT
exp (expiration) timestamp. |
T |
setId(java.lang.String jti)
Sets the JWT
jti (JWT ID) value. |
T |
setIssuedAt(java.util.Date iat)
Sets the JWT
iat (issued at) timestamp. |
T |
setIssuer(java.lang.String iss)
Sets the JWT
iss (issuer) value. |
T |
setNotBefore(java.util.Date nbf)
Sets the JWT
nbf (not before) timestamp. |
T |
setSubject(java.lang.String sub)
Sets the JWT
sub (subject) value. |
T setIssuer(java.lang.String iss)
iss (issuer) value. A null value will remove the property from the JSON map.iss - the JWT iss value or null to remove the property from the JSON map.Claims instance for method chaining.T setSubject(java.lang.String sub)
sub (subject) value. A null value will remove the property from the JSON map.sub - the JWT sub value or null to remove the property from the JSON map.Claims instance for method chaining.T setAudience(java.lang.String aud)
aud (audience) value. A null value will remove the property from the JSON map.aud - the JWT aud value or null to remove the property from the JSON map.Claims instance for method chaining.T setExpiration(java.util.Date exp)
exp (expiration) timestamp. A null value will remove the property from the JSON map.
A JWT obtained after this timestamp should not be used.
exp - the JWT exp value or null to remove the property from the JSON map.Claims instance for method chaining.T setNotBefore(java.util.Date nbf)
nbf (not before) timestamp. A null value will remove the property from the JSON map.
A JWT obtained before this timestamp should not be used.
nbf - the JWT nbf value or null to remove the property from the JSON map.Claims instance for method chaining.T setIssuedAt(java.util.Date iat)
iat (issued at) timestamp. A null value will remove the property from the JSON map.
The value is the timestamp when the JWT was created.
iat - the JWT iat value or null to remove the property from the JSON map.Claims instance for method chaining.T setId(java.lang.String jti)
jti (JWT ID) value. A null value will remove the property from the JSON map.
This value is a CaSe-SenSiTiVe unique identifier for the JWT. If specified, this value MUST be assigned in a manner that ensures that there is a negligible probability that the same value will be accidentally assigned to a different data object. The ID can be used to prevent the JWT from being replayed.
jti - the JWT jti value or null to remove the property from the JSON map.Claims instance for method chaining.T setDescription(java.lang.String description)