Enum ProtectionType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ProtectionType>

    public enum ProtectionType
    extends java.lang.Enum<ProtectionType>
    Available protection types for generating one-time passwords and signatures.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BIOMETRIC
      A biometric scan is needed for generating one-time passwords and signatures.
      NO_PASSWORD
      No password is needed for generating one-time passwords and signatures.
      PASSWORD
      A password is needed for generating one-time passwords and signatures.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ProtectionType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ProtectionType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NO_PASSWORD

        public static final ProtectionType NO_PASSWORD
        No password is needed for generating one-time passwords and signatures.
      • PASSWORD

        public static final ProtectionType PASSWORD
        A password is needed for generating one-time passwords and signatures.
      • BIOMETRIC

        public static final ProtectionType BIOMETRIC
        A biometric scan is needed for generating one-time passwords and signatures.
    • Method Detail

      • values

        public static ProtectionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ProtectionType c : ProtectionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ProtectionType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null