Class RevokeUserAuthorizationsUseCase
java.lang.Object
com.irurueta.authserver.authorization.application.tokens.RevokeUserAuthorizationsUseCase
Use case that revokes every token of a user, for example after a password change or reset.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UserAuthorizationRepositoryPort that removes stored authorizations. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
userAuthorizationRepository
Port that removes stored authorizations.
-
-
Constructor Details
-
RevokeUserAuthorizationsUseCase
public RevokeUserAuthorizationsUseCase()
-
-
Method Details
-
execute
Deletes the authorizations granted to a user.- Parameters:
principalName- name of the user.- Returns:
- the number of revoked authorizations.
-