Constructor
new Authentication(username, accessType, createdAt)
Authentication default constructor.
Parameters:
Name | Type | Description |
---|---|---|
username |
string | Authenticated user's name. |
accessType |
AccessType | Type of access used to authenticate. |
createdAt |
Date | Date the authentication was recorded. |
Methods
getAccessType() → {AccessType}
Returns:
Access type.
- Type
- AccessType
getCreationDate() → {Date}
Returns:
Date of authentication.
- Type
- Date
getUsername() → {string}
Returns:
Username.
- Type
- string