List of usage examples for java.security KeyStore.PrivateKeyEntry KeyStore.PrivateKeyEntry
public PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)
From source file:com.thoughtworks.go.security.Registration.java
public KeyStore.PrivateKeyEntry asKeyStoreEntry() { return new KeyStore.PrivateKeyEntry(privateKey, chain); }
From source file:net.link.util.test.pkix.PkiTestUtils.java
public static KeyStore.PrivateKeyEntry generateKeyEntry(String dn) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException, IOException, CertificateException, OperatorCreationException { KeyPair keyPair = generateKeyPair(); return new KeyStore.PrivateKeyEntry(keyPair.getPrivate(), new Certificate[] { generateSelfSignedCertificate(keyPair, dn) }); }