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, read
public 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 © 2016. All rights reserved.