Class RevokeTrustedDeviceUseCase
java.lang.Object
com.irurueta.authserver.authorization.application.mfa.RevokeTrustedDeviceUseCase
Use case that revokes a trusted device of a user, so it asks for the second factor again.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecordSecurityEventUseCaseUse case that records the audit events.private final TrustedDeviceRepositoryPort that stores the trusted devices. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
trustedDeviceRepository
Port that stores the trusted devices. -
recordSecurityEventUseCase
Use case that records the audit events.
-
-
Constructor Details
-
RevokeTrustedDeviceUseCase
public RevokeTrustedDeviceUseCase()
-
-
Method Details
-
execute
Revokes a device; a device of another user is never touched.- Parameters:
userId- identifier of the owner.username- name of the owner, for the audit log.deviceId- identifier of the device.- Returns:
trueif the device existed and was revoked.
-