public class PrivateKeyCredentialReader extends AbstractCredentialReader<PrivateKey>
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
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 © 2003-2019 Virginia Tech. All Rights Reserved.