public class JDKKeyAndCertificateFactory extends Object implements KeyAndCertificateFactory
KEY_GENERATION_ALGORITHM, SIGNING_ALGORITHM
Constructor and Description |
---|
JDKKeyAndCertificateFactory(MockServerLogger mockServerLogger) |
Modifier and Type | Method and Description |
---|---|
void |
buildAndSaveCertificateAuthorityPrivateKeyAndX509Certificate() |
void |
buildAndSavePrivateKeyAndX509Certificate() |
boolean |
certificateAuthorityCertificateNotYetCreated() |
X509Certificate |
certificateAuthorityX509Certificate() |
boolean |
certificateNotYetCreated() |
static void |
createParentDirs(File file) |
PrivateKey |
privateKey() |
X509Certificate |
x509Certificate() |
public JDKKeyAndCertificateFactory(MockServerLogger mockServerLogger)
public void buildAndSaveCertificateAuthorityPrivateKeyAndX509Certificate()
buildAndSaveCertificateAuthorityPrivateKeyAndX509Certificate
in interface KeyAndCertificateFactory
public static void createParentDirs(File file) throws IOException
IOException
public boolean certificateAuthorityCertificateNotYetCreated()
public X509Certificate certificateAuthorityX509Certificate()
certificateAuthorityX509Certificate
in interface KeyAndCertificateFactory
public void buildAndSavePrivateKeyAndX509Certificate()
buildAndSavePrivateKeyAndX509Certificate
in interface KeyAndCertificateFactory
public boolean certificateNotYetCreated()
certificateNotYetCreated
in interface KeyAndCertificateFactory
public PrivateKey privateKey()
privateKey
in interface KeyAndCertificateFactory
public X509Certificate x509Certificate()
x509Certificate
in interface KeyAndCertificateFactory
Copyright © 2020. All rights reserved.