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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultActionTokenKey(String userId, String actionId, int absoluteExpirationInSecs, UUID actionVerificationNonce) -
Method Summary
Methods inherited from class org.keycloak.representations.JsonWebToken
addAudience, audience, exp, getAudience, getCategory, getExp, getIat, getId, getIssuedFor, getIssuer, getNbf, getOtherClaims, getSubject, getType, hasAnyAudience, hasAudience, iat, id, isActive, isActive, isExpired, isIssuedBeforeSessionStart, isNotBefore, issuedFor, issuedNow, issuer, nbf, setOtherClaims, setSubject, subject, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.SingleUseObjectKeyModel
getExp, 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:
getUserIdin interfaceSingleUseObjectKeyModel- Returns:
- ID of user which this token is for.
-
getActionId
- Specified by:
getActionIdin interfaceSingleUseObjectKeyModel- Returns:
- Action identifier this token is for.
-
getActionVerificationNonce
- Specified by:
getActionVerificationNoncein interfaceSingleUseObjectKeyModel- Returns:
- Single-use random value used for verification whether the relevant action is allowed.
-
from
-