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