public class DERCredential extends AbstractDelegatingX509Credential
delegate
Constructor and Description |
---|
DERCredential(java.io.InputStream privateKeyStream,
java.io.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(java.lang.String keyPath,
java.lang.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(java.io.InputStream privateKeyStream, java.io.InputStream certificateStream, char[] keyPasswd) throws java.io.IOException, java.security.KeyStoreException, java.security.cert.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 encryptedjava.io.IOException
- if any of streams can not be readjava.security.KeyStoreException
- if private key can not be parsedjava.security.cert.CertificateException
- if certificate can not be parsedpublic DERCredential(java.lang.String keyPath, java.lang.String certificatePath, char[] keyPasswd) throws java.io.IOException, java.security.KeyStoreException, java.security.cert.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 encryptedjava.io.IOException
- if any of files can not be readjava.security.KeyStoreException
- if private key can not be parsedjava.security.cert.CertificateException
- if certificate can not be parsed