org.xwiki.crypto.pkix.params.x509certificate
Enum X509CertificateGenerationParameters.Version

java.lang.Object
  extended by java.lang.Enum<X509CertificateGenerationParameters.Version>
      extended by 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.


Enum Constant Summary
V1
          Request a version 1 X.509 certificate.
V2
          Request a version 2 X.509 certificate (actually unsupported).
V3
          Request a version 3 X.509 certificate.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null


Copyright © 2004–2014 XWiki. All rights reserved.