public class DERCredential extends AbstractDelegatingX509Credential
delegate
Constructor and Description |
---|
DERCredential(InputStream privateKeyStream,
InputStream certificateStream,
char[] keyPasswd)
Constructs the object from two
InputStream s which can be used to read
a private key and certificate in DER PKCS8 format. |
DERCredential(String keyPath,
String certificatePath,
char[] keyPasswd)
Constructs the object from two files containing private key and certificate in
DER PKCS8 format.
|
getCertificate, getCertificateChain, getKey, getKeyAlias, getKeyManager, getKeyPassword, getKeyStore, getSubjectName
public DERCredential(InputStream privateKeyStream, InputStream certificateStream, char[] keyPasswd) throws IOException, KeyStoreException, CertificateException
InputStream
s which can be used to read
a private key and certificate in DER PKCS8 format.
The streams are closed after constructing the object.
privateKeyStream
- InputStream which can be used to read the private key in DER formatcertificateStream
- certificate input stream in DER formatkeyPasswd
- key password or null if the key is not encryptedIOException
- if any of streams can not be readKeyStoreException
- if private key can not be parsedCertificateException
- if certificate can not be parsedpublic DERCredential(String keyPath, String certificatePath, char[] keyPasswd) throws IOException, KeyStoreException, CertificateException
The streams are closed after constructing the object.
keyPath
- private key file path in DER formatcertificatePath
- certificate file path in DER formatkeyPasswd
- key password or null if the key is not encryptedIOException
- if any of files can not be readKeyStoreException
- if private key can not be parsedCertificateException
- if certificate can not be parsedCopyright © 2012-2017 European Middleware Initiative. All Rights Reserved.