org.ldaptive.ssl
Class PrivateKeyCredentialReader
java.lang.Object
org.ldaptive.ssl.AbstractCredentialReader<PrivateKey>
org.ldaptive.ssl.PrivateKeyCredentialReader
- All Implemented Interfaces:
- CredentialReader<PrivateKey>
public class PrivateKeyCredentialReader
- extends AbstractCredentialReader<PrivateKey>
Reads private key credentials from classpath, filepath, or stream resource.
Supported private key formats include: PKCS8.
- Version:
- $Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
- Author:
- Middleware Services
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrivateKeyCredentialReader
public PrivateKeyCredentialReader()
read
public PrivateKey read(InputStream is,
String... params)
throws IOException,
GeneralSecurityException
- Reads a private key from an input stream.
- Parameters:
is - Input stream from which to read private key.params - A single optional parameter, algorithm, may be specified.
The default is RSA.
- Returns:
- Private key read from data in stream.
- Throws:
IOException - On IO errors.
GeneralSecurityException - On errors with the credential data.
Copyright © 2003-2015 Virginia Tech. All Rights Reserved.