public class KeyProviderUtil extends Object
| Constructor and Description |
|---|
KeyProviderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static KeyFormat |
detectKeyFileFormat(File location)
Attempts to detect how a key file is encoded.
|
static KeyFormat |
detectKeyFileFormat(Reader privateKey,
boolean separatePubKey)
Attempts to detect how a key file is encoded.
|
static KeyFormat |
detectKeyFileFormat(String privateKey,
boolean separatePubKey)
Attempts to detect how a key file is encoded.
|
public static KeyFormat detectKeyFileFormat(File location) throws IOException
NamedFactory implementations in the keyprovider package.location - IOExceptionpublic static KeyFormat detectKeyFileFormat(String privateKey, boolean separatePubKey) throws IOException
NamedFactory implementations in the keyprovider package.privateKey - Private key stored in a stringseparatePubKey - Is the public key stored separately from the private keyIOExceptionpublic static KeyFormat detectKeyFileFormat(Reader privateKey, boolean separatePubKey) throws IOException
NamedFactory implementations in the keyprovider package.privateKey - Private key accessible through a ReaderseparatePubKey - Is the public key stored separately from the private keyIOExceptionCopyright © 2009–2014. All rights reserved.