Package org.xipki.ca.api.profile
Enum Certprofile.X509CertVersion
- java.lang.Object
-
- java.lang.Enum<Certprofile.X509CertVersion>
-
- org.xipki.ca.api.profile.Certprofile.X509CertVersion
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Certprofile.X509CertVersion>
- Enclosing class:
- Certprofile
public static enum Certprofile.X509CertVersion extends java.lang.Enum<Certprofile.X509CertVersion>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Certprofile.X509CertVersionforName(java.lang.String version)intgetVersionNumber()static Certprofile.X509CertVersionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Certprofile.X509CertVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
v1
public static final Certprofile.X509CertVersion v1
-
v2
public static final Certprofile.X509CertVersion v2
-
v3
public static final Certprofile.X509CertVersion v3
-
-
Method Detail
-
values
public static Certprofile.X509CertVersion[] 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 (Certprofile.X509CertVersion c : Certprofile.X509CertVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Certprofile.X509CertVersion 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 namejava.lang.NullPointerException- if the argument is null
-
getVersionNumber
public int getVersionNumber()
-
forName
public static Certprofile.X509CertVersion forName(java.lang.String version)
-
-