Package com.fathomdb.crypto

Examples of com.fathomdb.crypto.SimpleClientCertificateKeyManager


    CertificateAndKey certificateAndKey = encryptionStore.getCertificateAndKey(cert);

    HostnameVerifier hostnameVerifier = null;

    KeyManager keyManager = new SimpleClientCertificateKeyManager(certificateAndKey);

    TrustManager trustManager = null;

    String trustKeys = configuration.lookup("auth.system.ssl.keys", null);
View Full Code Here


    auth.setCertificateCredentials(certificateCredentials);

    AuthenticateRequest request = new AuthenticateRequest();
    request.setAuth(auth);

    final KeyManager keyManager = new SimpleClientCertificateKeyManager(privateKey, certificateChain);

    for (int i = 0; i < 2; i++) {
      AuthenticateResponse response;
      try {
        RestfulRequest<AuthenticateResponse> httpRequest = httpClient.buildRequest(HttpMethod.POST,
View Full Code Here

      }
    }

    SchemeSocketFactory schemeSocketFactory;
    try {
      KeyManager keyManager = new SimpleClientCertificateKeyManager(certificateAndKey);

      TrustManager trustManager;
      X509HostnameVerifier hostnameVerifier;
      if (trustKeys != null) {
        trustManager = new PublicKeyTrustManager(trustKeys);
View Full Code Here

        setEntityJson(httpRequest, request);
        return doJsonRequest(httpRequest, RegisterResponse.class);
    }

    private HttpClient getHttpClient(CertificateAndKey certificateAndKey) {
        SimpleClientCertificateKeyManager keyManager = new SimpleClientCertificateKeyManager(certificateAndKey);

        SslConfiguration sslConfiguration = getHttpClient().getSslConfiguration().copyWithNewKeyManager(keyManager);
        HttpClient httpClient = getHttpClient().withSsl(sslConfiguration);
        return httpClient;
    }
View Full Code Here

TOP

Related Classes of com.fathomdb.crypto.SimpleClientCertificateKeyManager

Copyright © 2018 www.massapicom. 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.