public class DefaultSecretStrengthPolicy extends Object implements SecretStrengthPolicy
SecurityConstants.SECRET_STRENGTH_POLICY_CLASS.| Constructor and Description |
|---|
DefaultSecretStrengthPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(String label,
CharSequence secret)
Validate a secret.
|
public void validate(String label, CharSequence secret) throws WeakSecretException
SecretStrengthPolicy
Normal return is expected if the secret is secure as defined by the implementation of this spec.
Exception thrown WeakSecretException otherwise.
validate in interface SecretStrengthPolicylabel - the secret label, (eg. Group password) used to construct a human friendly message for the exceptionsecret - the actual secret value, the one to evaluate.WeakSecretExceptionCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.