public enum CertificateType extends Enum<CertificateType>
| Modifier and Type | Method and Description |
|---|---|
static CertificateType |
from(int code) |
static CertificateType |
from(String name) |
int |
getCode() |
String |
toString() |
static CertificateType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CertificateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CertificateType X509
public static final CertificateType PGP
public static CertificateType[] values()
for (CertificateType c : CertificateType.values()) System.out.println(c);
public static CertificateType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public String toString()
toString in class Enum<CertificateType>public static CertificateType from(String name) throws IllegalArgumentException
IllegalArgumentExceptionpublic static CertificateType from(int code) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2023. All rights reserved.