Enum X509CertificateGenerationParameters.Version
- java.lang.Object
-
- java.lang.Enum<X509CertificateGenerationParameters.Version>
-
- org.xwiki.crypto.pkix.params.x509certificate.X509CertificateGenerationParameters.Version
-
- All Implemented Interfaces:
Serializable
,Comparable<X509CertificateGenerationParameters.Version>
- Enclosing class:
- X509CertificateGenerationParameters
public static enum X509CertificateGenerationParameters.Version extends Enum<X509CertificateGenerationParameters.Version>
X.509 version.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static X509CertificateGenerationParameters.Version
valueOf(String name)
Returns the enum constant of this type with the specified name.static X509CertificateGenerationParameters.Version[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V1
public static final X509CertificateGenerationParameters.Version V1
Request a version 1 X.509 certificate.
-
V2
public static final X509CertificateGenerationParameters.Version V2
Request a version 2 X.509 certificate (actually unsupported).
-
V3
public static final X509CertificateGenerationParameters.Version V3
Request a version 3 X.509 certificate.
-
-
Method Detail
-
values
public static X509CertificateGenerationParameters.Version[] 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 (X509CertificateGenerationParameters.Version c : X509CertificateGenerationParameters.Version.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static X509CertificateGenerationParameters.Version 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 nameNullPointerException
- if the argument is null
-
-