public static enum Pem.Format extends Enum<Pem.Format>
Denotes the specific syntax used for encoding public and private keys (Does not affect the encoding of certificates)
| Enum Constant and Description |
|---|
DEFAULT
Encodes private keys in PKCS8 format and public keys in X509 public key format
|
LEGACY
Encodes the public key or private key in PKCS1 format e.g.
|
| Modifier and Type | Method and Description |
|---|---|
static Pem.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pem.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pem.Format LEGACY
-----BEGIN RSA PRIVATE KEY-----public static final Pem.Format DEFAULT
public static Pem.Format[] values()
for (Pem.Format c : Pem.Format.values()) System.out.println(c);
public static Pem.Format 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 nullCopyright © 2016–2024. All rights reserved.