public class KeyPairFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM |
static BigInteger |
PUBLIC_EXPONENT
F4 Public Exponent
|
static int |
RPKI_KEY_PAIR_SIZE |
| Constructor and Description |
|---|
KeyPairFactory(String provider) |
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
decodePrivateKey(byte[] encoded)
Decodes a PKCS#8 encoded private key.
|
static PublicKey |
decodePublicKey(byte[] encoded)
Decodes an X.509 encoded public key.
|
KeyPair |
generate() |
KeyPairFactory |
withProvider(String provider) |
public static final String ALGORITHM
public static final int RPKI_KEY_PAIR_SIZE
public static final BigInteger PUBLIC_EXPONENT
public KeyPairFactory(String provider)
public KeyPair generate()
public static PublicKey decodePublicKey(byte[] encoded)
encoded - the encoded public key.public static PrivateKey decodePrivateKey(byte[] encoded)
encoded - the encoded data.public KeyPairFactory withProvider(String provider)
Copyright © 2008-2016 RIPE NCC, the Netherlands. All Rights Reserved.