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