Package br.net.woodstock.rockframework.security

Examples of br.net.woodstock.rockframework.security.Identity


    X509CertificateHolder holder = builder.build(contentSigner);

    X509Certificate certificate = (X509Certificate) CertificateUtils.getCertificateFromFile(holder.getEncoded(), CertificateType.X509);
    PrivateKey privateKey = request.getPrivateKey();
    Identity identity = new Identity(privateKey, new Certificate[] { certificate });
    CertificateResponse response = new CertificateResponse(identity);

    return response;
  }
View Full Code Here


    if ((request.getIssuerPrivateKey() != null) && (request.getIssuerCertificate() != null)) {
      certificate.verify(request.getIssuerCertificate().getPublicKey());
    }

    PrivateKey privateKey = request.getPrivateKey();
    Identity identity = new Identity(privateKey, new Certificate[] { certificate });
    CertificateResponse response = new CertificateResponse(identity);

    return response;
  }
View Full Code Here

TOP

Related Classes of br.net.woodstock.rockframework.security.Identity

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.