Similar to loginCustomer but does not create a session of the customer upon success.
Syntax
void
checkCredential
(
final long
customerId
,
final String
credential
,
final int
credentialType
,
final long
callerId
) throws EntityNotFoundException, CustomerStatusException, CredentialValidationException, SessionException
Parameters
-
customerId –
the ID of the customer for whom the credential is checked
-
credential –
the credential to check
-
credentialType –
the type of the credential that is provided
-
callerId –
represents the ID of the caller of the operation. Used for tracking/audit purposes.
Exceptions
-
EntityNotFoundException –
-
CustomerInactiveException –
-
CustomerBlacklistedException –
-
CredentialBlockedException –
-
CredentialOkButExpiredException –
-
CredentialWrongException –
-
CredentialNotFoundException –
-
CredentialOkButTemporaryException –
-
CredentialWrongAndActionTakenException –
Usage
Instead of an Identification the id of the customer must be provided. Other than that the same business logic is executed.