Package org.xipki.security.pkcs12
Class KeypairWithCert
- java.lang.Object
-
- org.xipki.security.pkcs12.KeypairWithCert
-
public class KeypairWithCert extends Object
Keypair with certificate.- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description KeypairWithCert(PrivateKey key, X509Cert[] certificateChain)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeypairWithCertfromKeystore(String keystoreType, InputStream keystoreStream, char[] keystorePassword, String keyname, char[] keyPassword, X509Cert cert)static KeypairWithCertfromKeystore(String keystoreType, InputStream keystoreStream, char[] keystorePassword, String keyname, char[] keyPassword, X509Cert[] certchain)static KeypairWithCertfromKeystore(KeyStore keystore, String keyname, char[] keyPassword, X509Cert[] certchain)X509Cert[]getCertificateChain()PrivateKeygetKey()PublicKeygetPublicKey()
-
-
-
Constructor Detail
-
KeypairWithCert
public KeypairWithCert(PrivateKey key, X509Cert[] certificateChain)
-
-
Method Detail
-
fromKeystore
public static KeypairWithCert fromKeystore(String keystoreType, InputStream keystoreStream, char[] keystorePassword, String keyname, char[] keyPassword, X509Cert cert) throws XiSecurityException
- Throws:
XiSecurityException
-
fromKeystore
public static KeypairWithCert fromKeystore(String keystoreType, InputStream keystoreStream, char[] keystorePassword, String keyname, char[] keyPassword, X509Cert[] certchain) throws XiSecurityException
- Throws:
XiSecurityException
-
fromKeystore
public static KeypairWithCert fromKeystore(KeyStore keystore, String keyname, char[] keyPassword, X509Cert[] certchain) throws XiSecurityException
- Throws:
XiSecurityException
-
getKey
public PrivateKey getKey()
-
getPublicKey
public PublicKey getPublicKey()
-
getCertificateChain
public X509Cert[] getCertificateChain()
-
-