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.IOException
public 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.IOException
public 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 Reader
separatePubKey
- Is the public key stored separately from the private keyjava.io.IOException