public class KeyProviderUtil extends Object
| Constructor and Description |
|---|
KeyProviderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static FileKeyProvider.Format |
detectKeyFileFormat(File location)
Attempts to detect how a key file is encoded.
|
static FileKeyProvider.Format |
detectKeyFileFormat(String privateKey,
boolean separatePubKey)
Attempts to detect how a key file is encoded.
|
public static FileKeyProvider.Format detectKeyFileFormat(File location) throws IOException
NamedFactory implementations in the keyprovider package.location - IOExceptionpublic static FileKeyProvider.Format 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 keyIOExceptionCopyright © 2009–2013. All rights reserved.