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
 
 public class DefaultActionTokenKey extends JsonWebToken implements SingleUseObjectKeyModel - Author:
- hmlnarik
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringACTION_TOKEN_USER_IDThe authenticationSession note with ID of the user authenticated via the action tokenstatic StringJSON_FIELD_ACTION_VERIFICATION_NONCE
 - 
Constructor SummaryConstructors Constructor Description DefaultActionTokenKey()DefaultActionTokenKey(String userId, String actionId, int absoluteExpirationInSecs, UUID actionVerificationNonce)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultActionTokenKeyfrom(String serializedKey)StringgetActionId()UUIDgetActionVerificationNonce()StringgetUserId()- 
Methods inherited from class org.keycloak.representations.JsonWebTokenaddAudience, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.SingleUseObjectKeyModelgetExpiration, serializeKey
 
- 
 
- 
- 
- 
Field Detail- 
ACTION_TOKEN_USER_IDpublic static final String ACTION_TOKEN_USER_ID The authenticationSession note with ID of the user authenticated via the action token- See Also:
- Constant Field Values
 
 - 
JSON_FIELD_ACTION_VERIFICATION_NONCEpublic static final String JSON_FIELD_ACTION_VERIFICATION_NONCE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getUserIdpublic String getUserId() - Specified by:
- getUserIdin interface- SingleUseObjectKeyModel
- Returns:
- ID of user which this token is for.
 
 - 
getActionIdpublic String getActionId() - Specified by:
- getActionIdin interface- SingleUseObjectKeyModel
- Returns:
- Action identifier this token is for.
 
 - 
getActionVerificationNoncepublic UUID getActionVerificationNonce() - Specified by:
- getActionVerificationNoncein interface- SingleUseObjectKeyModel
- Returns:
- Single-use random value used for verification whether the relevant action is allowed.
 
 - 
frompublic static DefaultActionTokenKey from(String serializedKey) 
 
- 
 
-