public interface SecretStrengthPolicy
Used to validate strength of secrets (passwords, keys, salts) in the configuration, and in case a weak one is identified
it throws a WeakSecretException.
| Modifier and Type | Method and Description |
|---|---|
void |
validate(String label,
CharSequence secret)
Validate a secret.
|
void validate(String label, CharSequence secret) throws WeakSecretException
Normal return is expected if the secret is secure as defined by the implementation of this spec.
Exception thrown WeakSecretException otherwise.
label - 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 © 2023 Hazelcast, Inc.. All rights reserved.