ExamerCredentialsValidationUseCase

A concrete implementation of CredentialsValidationUseCase.

Constructors

Link copied to clipboard
fun ExamerCredentialsValidationUseCase()

Functions

Link copied to clipboard
open override fun isValidEmail(email: String): Boolean

The method is used to check whether the email is valid. An email is valid if, and only if, it is not blank(ie. is not empty and doesn't contain whitespace characters) and matches the Patterns.EMAIL_ADDRESS regex.

Link copied to clipboard
open override fun isValidPassword(password: String): Boolean

The method is used to check whether the password is valid. A password is valid if, and only if,it is of length 8 , contains at least one uppercase and lowercase letter and contains at least one digit.