Examples of OptimisticCertificateVerifier


Examples of org.jscep.client.verification.OptimisticCertificateVerifier

    public void testExample() throws Exception {
      // For the sake of simplicity, we use an optimistic verifier. This has
      // no
      // place in production code.
      DefaultCallbackHandler handler = new DefaultCallbackHandler(
          new OptimisticCertificateVerifier());
      Client client = new Client(getUrl(), handler);
      // Get the capabilities of the SCEP server
      Capabilities caps = client.getCaCapabilities();
 
      // We construct a Bouncy Castle digital signature provider early on,
View Full Code Here

Examples of org.jscep.client.verification.OptimisticCertificateVerifier

    keyPair = KeyPairGenerator.getInstance("RSA").generateKeyPair();
    identity = X509Certificates.createEphemeral(new X500Principal(
        "CN=jscep.org"), keyPair);

    final CallbackHandler cbh = new DefaultCallbackHandler(
        new OptimisticCertificateVerifier());

    client = new Client(getUrl(), cbh);
  }
View Full Code Here

Examples of org.jscep.client.verification.OptimisticCertificateVerifier

  public void cgiProgIsIgnoredForIssue24() throws GeneralSecurityException,
      MalformedURLException {
    final URL url = new URL("http://someurl/certsrv/mscep/mscep.dll");

    Client c = new Client(url, new DefaultCallbackHandler(
        new OptimisticCertificateVerifier()));
    assertNotNull(c);
  }
View Full Code Here

Examples of org.jscep.client.verification.OptimisticCertificateVerifier

      throw new RuntimeException(e);
  }
    }

    private CallbackHandler getCallbackHandler() {
  return new DefaultCallbackHandler(new OptimisticCertificateVerifier());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.