Serializable
, Comparable<PemObjectType>
public enum PemObjectType extends Enum<PemObjectType>
A PEM file can contain one or multiple PEM objects, each with a beginning and ending marker.
Enum Constant | Description |
---|---|
CERTIFICATE_X509 |
|
PRIVATE_KEY_PKCS1 |
|
PRIVATE_KEY_PKCS8 |
|
PUBLIC_KEY_X509 |
Modifier and Type | Method | Description |
---|---|---|
static PemObjectType |
fromBeginMarker(String beginMarker) |
|
String |
getBeginMarker() |
|
static PemObjectType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static PemObjectType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PemObjectType PRIVATE_KEY_PKCS1
public static final PemObjectType PRIVATE_KEY_PKCS8
public static final PemObjectType PUBLIC_KEY_X509
public static final PemObjectType CERTIFICATE_X509
public static PemObjectType[] values()
for (PemObjectType c : PemObjectType.values()) System.out.println(c);
public static PemObjectType 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 static PemObjectType fromBeginMarker(String beginMarker)
public String getBeginMarker()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.