Package org.keycloak.models
Class DefaultActionTokenKey
java.lang.Object
org.keycloak.representations.JsonWebToken
org.keycloak.models.DefaultActionTokenKey
- All Implemented Interfaces:
Serializable
,SingleUseObjectKeyModel
,Token
- Direct Known Subclasses:
DefaultActionToken
- Author:
- hmlnarik
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultActionTokenKey
(String userId, String actionId, int absoluteExpirationInSecs, UUID actionVerificationNonce) -
Method Summary
Methods inherited from class org.keycloak.representations.JsonWebToken
addAudience, audience, exp, expiration, getAudience, getCategory, getExp, getExpiration, getIat, getId, getIssuedAt, getIssuedFor, getIssuer, getNbf, getNotBefore, getOtherClaims, getSubject, getType, hasAnyAudience, hasAudience, iat, id, isActive, isActive, isExpired, isIssuedBeforeSessionStart, isNotBefore, issuedAt, issuedFor, issuedNow, issuer, nbf, notBefore, setOtherClaims, setSubject, subject, type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.models.SingleUseObjectKeyModel
getExpiration, serializeKey
-
Field Details
-
ACTION_TOKEN_USER_ID
The authenticationSession note with ID of the user authenticated via the action token- See Also:
-
JSON_FIELD_ACTION_VERIFICATION_NONCE
- See Also:
-
-
Constructor Details
-
DefaultActionTokenKey
public DefaultActionTokenKey() -
DefaultActionTokenKey
-
-
Method Details
-
getUserId
- Specified by:
getUserId
in interfaceSingleUseObjectKeyModel
- Returns:
- ID of user which this token is for.
-
getActionId
- Specified by:
getActionId
in interfaceSingleUseObjectKeyModel
- Returns:
- Action identifier this token is for.
-
getActionVerificationNonce
- Specified by:
getActionVerificationNonce
in interfaceSingleUseObjectKeyModel
- Returns:
- Single-use random value used for verification whether the relevant action is allowed.
-
from
-