@Override
 public X509Certificate[] getAcceptedIssuers() {
   return new X509Certificate[] {TestCertUtil.getCaCert()};
 }
 @Override
 public PrivateKey getPrivateKey(String alias) {
   return TestCertUtil.getProducer().key;
 }
 @Override
 public X509Certificate[] getCertificateChain(String alias) {
   return new X509Certificate[] {TestCertUtil.getProducer().cert};
 }
Example #4
0
 @Override
 public AuthKey getAuthKey() {
   PKCS12 consumer = TestCertUtil.getConsumer();
   return new AuthKey(CertChain.create("EE", consumer.cert, null), consumer.key);
 }
Example #5
0
 private PrivateKey getOcspRequestKey() throws Exception {
   return TestCertUtil.getOcspSigner().key;
 }
Example #6
0
 private X509Certificate getOcspSignerCert() throws Exception {
   return TestCertUtil.getOcspSigner().cert;
 }