Class WeakSecretException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.hazelcast.core.HazelcastException
com.hazelcast.security.WeakSecretException
All Implemented Interfaces:
Serializable

public final class WeakSecretException extends com.hazelcast.core.HazelcastException
Exception thrown when a weak secret is detected. Contains the collection of weakness types, and a beautified human readable message.
See Also:
  • Field Details

    • ENFORCED

      @Deprecated(since="5.6", forRemoval=true) public static final boolean ENFORCED
      Deprecated, for removal: This API element is subject to removal in a future version.
      Because it does not consider properties from the config (Config.getProperties()), as implemented in WeakSecretsConfigChecker.policyEnforced
  • Constructor Details

    • WeakSecretException

      public WeakSecretException(String message)
  • Method Details

    • getWeaknesses

      public EnumSet<com.hazelcast.security.impl.WeakSecretError> getWeaknesses()
    • of

      public static WeakSecretException of(String label, EnumSet<com.hazelcast.security.impl.WeakSecretError> weaknesses)
    • formatMessage

      public static String formatMessage(String label, EnumSet<com.hazelcast.security.impl.WeakSecretError> weaknesses)