edu.vt.middleware.ldap.ssl
public class PrivateKeyCredentialReader extends AbstractCredentialReader<java.security.PrivateKey>
CLASSPATH_PREFIX, FILE_PREFIX, 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, read
public java.security.PrivateKey read(java.io.InputStream is, java.lang.String... params) throws java.io.IOException, java.security.GeneralSecurityException
read
in interface CredentialReader<java.security.PrivateKey>
read
in class AbstractCredentialReader<java.security.PrivateKey>
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.Copyright © 2014. All Rights Reserved.