Package org.xipki.util
Enum PemEncoder.PemLabel
- java.lang.Object
-
- java.lang.Enum<PemEncoder.PemLabel>
-
- org.xipki.util.PemEncoder.PemLabel
-
- All Implemented Interfaces:
Serializable,Comparable<PemEncoder.PemLabel>
- Enclosing class:
- PemEncoder
public static enum PemEncoder.PemLabel extends Enum<PemEncoder.PemLabel>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTRIBUTE_CERTIFICATERFC 5755 AttributeCertificate.CERTIFICATERFC5280 Certificate.CERTIFICATE_REQUESTRFC 2986 CertificationRequest.CMSRFC 5652 ContentInfo.ENCRYPTED_PRIVATE_KEYRFC 5958 EncryptedPrivateKeyInfo.PKCS7RFC 2315 ContentInfo.PRIVATE_KEYRFC 5208 PrivateKeyInfo / RFC 5958 OneAsymmetricKey.PUBLIC_KEYRFC 5280 SubjectPublicKeyInfo.X509_CRLRFC 5280 CertificateList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()static PemEncoder.PemLabelvalueOf(String name)Returns the enum constant of this type with the specified name.static PemEncoder.PemLabel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CERTIFICATE
public static final PemEncoder.PemLabel CERTIFICATE
RFC5280 Certificate.
-
X509_CRL
public static final PemEncoder.PemLabel X509_CRL
RFC 5280 CertificateList.
-
CERTIFICATE_REQUEST
public static final PemEncoder.PemLabel CERTIFICATE_REQUEST
RFC 2986 CertificationRequest.
-
PKCS7
public static final PemEncoder.PemLabel PKCS7
RFC 2315 ContentInfo.
-
CMS
public static final PemEncoder.PemLabel CMS
RFC 5652 ContentInfo.
-
PRIVATE_KEY
public static final PemEncoder.PemLabel PRIVATE_KEY
RFC 5208 PrivateKeyInfo / RFC 5958 OneAsymmetricKey.
-
ENCRYPTED_PRIVATE_KEY
public static final PemEncoder.PemLabel ENCRYPTED_PRIVATE_KEY
RFC 5958 EncryptedPrivateKeyInfo.
-
ATTRIBUTE_CERTIFICATE
public static final PemEncoder.PemLabel ATTRIBUTE_CERTIFICATE
RFC 5755 AttributeCertificate.
-
PUBLIC_KEY
public static final PemEncoder.PemLabel PUBLIC_KEY
RFC 5280 SubjectPublicKeyInfo.
-
-
Method Detail
-
values
public static PemEncoder.PemLabel[] 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 (PemEncoder.PemLabel c : PemEncoder.PemLabel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PemEncoder.PemLabel 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
-
getType
public String getType()
-
-