@Test public void testSelfSignedCertificateWithIncompatibleSignatureAlgorithm() throws Exception { SelfSignedX509CertificateAndSigningKey.Builder builder = SelfSignedX509CertificateAndSigningKey.builder() .setDn(DN) .setKeyAlgorithmName("RSA") .setSignatureAlgorithmName("SHA1withDSA"); try { builder.build(); fail("Expected IllegalArgumentException not thrown"); } catch (IllegalArgumentException expected) { } }
public static Builder builder() { return new Builder(); }
SelfSignedX509CertificateAndSigningKey { public static Builder builder() { return new Builder(); } }
SelfSignedX509CertificateAndSigningKey { public static Builder builder() { return new Builder(); } private  SelfSignedX509CertificateAndSigningKey(Builder builder); }
SelfSignedX509CertificateAndSigningKey { public static Builder builder() { return new Builder(); } private  SelfSignedX509CertificateAndSigningKey(Builder builder); X509Certificate getSelfSignedCertificate(); PrivateKey getSigningKey(); PKCS10CertificateSigningRequest generatePKCS10CertificateSigningRequest(); static Builder builder(); }
SelfSignedX509CertificateAndSigningKey { public static Builder builder() { return new Builder(); } private  SelfSignedX509CertificateAndSigningKey(Builder builder); X509Certificate getSelfSignedCertificate(); PrivateKey getSigningKey(); PKCS10CertificateSigningRequest generatePKCS10CertificateSigningRequest(); static Builder builder();  }