Enum OpenSshCertificate.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<OpenSshCertificate.Type>
    Enclosing interface:
    OpenSshCertificate

    public static enum OpenSshCertificate.Type
    extends java.lang.Enum<OpenSshCertificate.Type>
    OpenSshCertificates have a type indicating whether the certificate if for a host key (certifying a host identity) or for a user key (certifying a user identity). Note: values order is significant
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      HOST
      Host key certificate.
      USER
      User key certificate.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Type()  
    • Constructor Detail

      • Type

        private Type()
    • Method Detail

      • values

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

        public static OpenSshCertificate.Type 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
      • getCode

        public int getCode()