Package tss.tpm

Enum TPM_SE._N

  • All Implemented Interfaces:
    Serializable, Comparable<TPM_SE._N>
    Enclosing class:
    TPM_SE

    public static enum TPM_SE._N
    extends Enum<TPM_SE._N>
    Values from enum _N are only intended to be used in case labels of a switch statement using the result of this.asEnum() method as the switch condition. However, their Java names are identical to those of the constants defined in this class further below, so for any other usage just prepend them with the TPM_SE. qualifier.
    • Enum Constant Detail

      • POLICY

        public static final TPM_SE._N POLICY
      • TRIAL

        public static final TPM_SE._N TRIAL
        The policy session is being used to compute the policyHash and not for command authorization. This setting modifies some policy commands and prevents session from being used to authorize a command.
    • Method Detail

      • values

        public static TPM_SE._N[] 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 (TPM_SE._N c : TPM_SE._N.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TPM_SE._N valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null