public interface InvalidTokenPersistenceService
| Modifier and Type | Method and Description |
|---|---|
void |
addInvalidToken(String token,
String consumerKey,
Long expiryTime)
Mark a token as invalid with its expiry time during generation.
|
boolean |
isInvalidToken(String token,
String consumerKey)
Check if a token is marked as invalid due to direct token revocations.
|
boolean |
isTokenRevokedForConsumerKey(String consumerKey,
Date tokenIssuedTime)
Check if a token has been revoked as a result of any changes in the consumer app associated with the token
after the token's issuance timestamp.
|
boolean |
isTokenRevokedForSubjectEntity(String entityId,
Date tokenIssuedTime)
Check if a token has been revoked as a result of any changes in the subject principle/entity associated with
the token after the token's issuance timestamp.
|
void |
revokeTokensByConsumerKeyEvent(String consumerKey,
long revocationTime,
String organization,
int retryAttemptCounter)
Revoke access tokens based on a consumer key event.
|
void |
revokeTokensByUserEvent(String subjectId,
String subjectIdType,
long revocationTime,
String organization,
int retryAttemptCounter)
Revoke access tokens based on a user event.
|
boolean isInvalidToken(String token, String consumerKey) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
token - The token to check.consumerKey - The consumer key associated with the token.true if the token is marked as invalid, false otherwise.org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - If an error occurs during the check.void addInvalidToken(String token, String consumerKey, Long expiryTime) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
token - The token to mark as invalid.consumerKey - The consumer key associated with the token.expiryTime - The expiry time set for the token during generation.org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - If an error occurs while marking the token as invalid.boolean isTokenRevokedForConsumerKey(String consumerKey, Date tokenIssuedTime) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
consumerKey - The consumer key for which token was issued.tokenIssuedTime - The timestamp at which token was issued.true if the token has been revoked for the specified consumer app after the given timestamp,
false otherwise.org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - If an error occurs during the token revocation check.boolean isTokenRevokedForSubjectEntity(String entityId, Date tokenIssuedTime) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
entityId - The entity/subject principle ID for which the token was issued for.tokenIssuedTime - The timestamp at which token was issued.true if the token has been revoked for the specified entity after the given timestamp,
false otherwise.org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - If an error occurs during the token revocation check.void revokeTokensByUserEvent(String subjectId, String subjectIdType, long revocationTime, String organization, int retryAttemptCounter) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
subjectId - The subject identifier for the user.subjectIdType - The type of subject identifier.revocationTime - The time of the revocation event.organization - The organization associated with the revocation.retryAttemptCounter - The retry attempt counter.org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - If an error occurs during access token revocation.void revokeTokensByConsumerKeyEvent(String consumerKey, long revocationTime, String organization, int retryAttemptCounter) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
consumerKey - The consumer key for which access tokens should be revoked.revocationTime - The time of the revocation event.organization - The organization associated with the revocation.retryAttemptCounter - The retry attempt counter.org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception - If an error occurs during access token revocation.Copyright © 2024 WSO2. All rights reserved.