Checks if the credential matches all of the requirements defined in the given policy.
Syntax
void
checkCredentialStrength
(
CredentialPolicy
policy
,
String
plainTextCredential
,
final long
callerId
) throws CredentialStrengthException
Parameters
-
policy –
the policy that is used for checking the credntial against
-
plainTextCredential –
the credential in plain text (not hashed)
-
callerId –
represents the ID of the caller of the operation. Used for tracking/audit purposes.
Exceptions
-
CredentialTooLongException –
-
CredentialTooShortException –
-
CredentialHasWeakBlockException –
-
CredentialHasInvalidPatternException –
Usage
In case it does not an appropriate exception is thrown.