public class PrivateKeyCredentialReader extends AbstractCredentialReader<java.security.PrivateKey>
logger| Constructor and Description |
|---|
PrivateKeyCredentialReader() |
| Modifier and Type | Method and Description |
|---|---|
java.security.PrivateKey |
read(java.io.InputStream is,
java.lang.String... params)
Reads a private key from an input stream.
|
getBufferedInputStream, readpublic java.security.PrivateKey read(java.io.InputStream is,
java.lang.String... params)
throws java.io.IOException,
java.security.GeneralSecurityException
is - Input stream from which to read private key.params - A single optional parameter, algorithm, may be specified. The default is RSA.java.io.IOException - On IO errors.java.security.GeneralSecurityException - On errors with the credential data.