Class AuthenticationStatus

Holds the status of an authentication process.

ConstantDescription
AUTH_OK: String = "AUTH_OK"Authentication was successful
ERROR_CUSTOMER_DISABLED: String = "ERROR_CUSTOMER_DISABLED"customer could be found, but is disabled.
ERROR_CUSTOMER_LOCKED: String = "ERROR_CUSTOMER_LOCKED"customer could be found, but is locked (too many failed login attempts).
ERROR_CUSTOMER_NOT_FOUND: String = "ERROR_CUSTOMER_NOT_FOUND"customer could not be found
ERROR_PASSWORD_EXPIRED: String = "ERROR_PASSWORD_EXPIRED"Password does match, but is expired.
ERROR_PASSWORD_MISMATCH: String = "ERROR_PASSWORD_MISMATCH"the used password is not correct
ERROR_UNKNOWN: String = "ERROR_UNKNOWN"Any other error
PropertyDescription
authenticated: Boolean (read-only)checks whether the authentication was successful or not
customer: Customer (read-only)The customer, corresponding to the login used during authentication.
status: String (read-only)the status code (see the constants above)

This class does not have a constructor, so you cannot create it directly.

MethodDescription
getCustomer()The customer, corresponding to the login used during authentication.
getStatus()the status code (see the constants above)
isAuthenticated()checks whether the authentication was successful or not

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

AUTH_OK: String = "AUTH_OK"

Authentication was successful


ERROR_CUSTOMER_DISABLED: String = "ERROR_CUSTOMER_DISABLED"

customer could be found, but is disabled. Password was not verified.


ERROR_CUSTOMER_LOCKED: String = "ERROR_CUSTOMER_LOCKED"

customer could be found, but is locked (too many failed login attempts). Password was verified before.


ERROR_CUSTOMER_NOT_FOUND: String = "ERROR_CUSTOMER_NOT_FOUND"

customer could not be found


ERROR_PASSWORD_EXPIRED: String = "ERROR_PASSWORD_EXPIRED"

Password does match, but is expired.


ERROR_PASSWORD_MISMATCH: String = "ERROR_PASSWORD_MISMATCH"

the used password is not correct


ERROR_UNKNOWN: String = "ERROR_UNKNOWN"

Any other error


authenticated: Boolean (read-only)

checks whether the authentication was successful or not


customer: Customer (read-only)

The customer, corresponding to the login used during authentication. This customer is not logged in after authentication.


status: String (read-only)

the status code (see the constants above)


getCustomer(): Customer

The customer, corresponding to the login used during authentication. This customer is not logged in after authentication.

Returns:

  • the customer described by the login

getStatus(): String

the status code (see the constants above)

Returns:

  • the status code

isAuthenticated(): Boolean

checks whether the authentication was successful or not

Returns:

  • the when the authentication was successful