public interface RefreshToken
Modifier and Type | Method and Description |
---|---|
String |
getAncestor()
The primary key value of the first refresh token assigned in the current inheritance line.
|
Long |
getExpiration()
The maximum lifespan of a refresh token.
|
String |
getId()
The primary key of the refresh token.
|
Long |
getRotationExpiration()
Refresh token rotation allows for a configurable window of time in which a refresh token may
be used multiple times without failure.
|
boolean |
isRotated()
Whether or not this refresh token instance has been used as part of a refresh attempt
|
void |
setAncestor(String ancestor) |
void |
setExpiration(Long expiration) |
void |
setId(String id) |
void |
setRotated(boolean isRotated) |
void |
setRotationExpiration(Long rotationExpiration) |
String getId()
JTI
param in the refresh token
JWT. Note, for a rotatable token, the JTI is two-part. The first segment is the partition
identifier (e.g. see JpaRefreshToken1
as an integer. The second segment is the id
captured in this field.String getAncestor()
setRotationExpiration(Long)
timeline will result in immediate revocation of the
entire inheritance line of refresh tokens.boolean isRotated()
Long getRotationExpiration()
getAncestor()
is triggered. This window is designed to allow
for system irregularities like network latency or outage in which an application may be
forced to quickly retry a rotation. Represented as milliseconds after epoch.
This value is generally set in
JpaAuthorizedClient.getRefreshTokenRotationIntervalSeconds()
and the system harvests
from there and converts to millis based on the current client being used in the oauth flow.Long getExpiration()
This value is generally set in
JpaAuthorizedClient.getRefreshTokenTimeoutSeconds()
and the system harvest from there and converts to millis based on the current client being
used in the oauth flow.void setAncestor(String ancestor)
ancestor
- getAncestor()
void setRotated(boolean isRotated)
isRotated
- isRotated()
void setRotationExpiration(Long rotationExpiration)
rotationExpiration
- getRotationExpiration()
void setExpiration(Long expiration)
expiration
- getExpiration()
Copyright © 2021. All rights reserved.