Enum Class PushCredentialsFile.PasswordType

java.lang.Object
java.lang.Enum<PushCredentialsFile.PasswordType>
com.iizix.server.push.engine.http.PushCredentialsFile.PasswordType
All Implemented Interfaces:
Serializable, Comparable<PushCredentialsFile.PasswordType>, Constable
Enclosing class:
PushCredentialsFile

public static enum PushCredentialsFile.PasswordType extends Enum<PushCredentialsFile.PasswordType>
The password storage types of section 3.2.
Author:
Christopher Mindus
  • Enum Constant Details

  • Method Details

    • values

      public static PushCredentialsFile.PasswordType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PushCredentialsFile.PasswordType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      public static PushCredentialsFile.PasswordType parse(String name)
      Parses a type name, case-insensitively.
      Parameters:
      name - The name, e.g. sha256.
      Returns:
      The type, or null when the name is none of the four.
    • isWeak

      public boolean isWeak()
      Tells whether the type is weak, i.e. counted in the section 3.4 WARNING: every type but IZ1.
      Returns:
      true for a weak type.