public class KeyFileUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
keyAlgorithm |
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
readEncryptedPrivateKey(byte[] fileContents,
char[] passphrase) |
protected static PrivateKey |
readEncryptedPrivateKey(File file,
char[] passphrase) |
static PublicKey |
readEncryptedPublicKey(byte[] fileContents,
char[] passphrase) |
protected static PublicKey |
readEncryptedPublicKey(File file,
char[] passphrase) |
protected static byte[] |
writeEncryptedPrivateKey(PrivateKey privateKey,
char[] passphrase) |
protected static void |
writeEncryptedPrivateKey(PrivateKey privateKey,
File file,
char[] passphrase) |
protected static byte[] |
writeEncryptedPublicKey(PublicKey publicKey,
char[] passphrase) |
protected static void |
writeEncryptedPublicKey(PublicKey publicKey,
File file,
char[] passphrase) |
public static final String keyAlgorithm
protected static void writeEncryptedPrivateKey(PrivateKey privateKey, File file, char[] passphrase) throws IOException
IOExceptionprotected static void writeEncryptedPublicKey(PublicKey publicKey, File file, char[] passphrase) throws IOException
IOExceptionprotected static PrivateKey readEncryptedPrivateKey(File file, char[] passphrase) throws IOException
IOExceptionprotected static PublicKey readEncryptedPublicKey(File file, char[] passphrase) throws IOException
IOExceptionprotected static byte[] writeEncryptedPrivateKey(PrivateKey privateKey, char[] passphrase)
protected static byte[] writeEncryptedPublicKey(PublicKey publicKey, char[] passphrase)
public static PrivateKey readEncryptedPrivateKey(byte[] fileContents, char[] passphrase)
public static PublicKey readEncryptedPublicKey(byte[] fileContents, char[] passphrase)
Copyright © 2010-2013 NWTS Java Code. All Rights Reserved. Licensed Under the Apache License version 2.0.