Package br.net.woodstock.rockframework.security.cert

Examples of br.net.woodstock.rockframework.security.cert.KeySizeType


    this.ca = request.isCa();
    this.provider = request.getProvider();

    if (this.keyPair == null) {
      KeyPairGenerator generator = KeyPairGenerator.getInstance(KeyPairType.RSA.getAlgorithm());
      KeySizeType keySize = request.getKeySize();
      if (keySize == null) {
        keySize = BouncyCastleCertificateRequest.DEFAULT_KEY_SIZE;
      }
      generator.initialize(keySize.getSize());
      this.keyPair = generator.generateKeyPair();
    }

    if (this.signType == null) {
      this.signType = SignatureType.SHA1_RSA;
View Full Code Here


    this.certificatePolicies = request.getCertificatePolicies();
    this.ca = request.isCa();

    if (this.keyPair == null) {
      KeyPairGenerator generator = KeyPairGenerator.getInstance(KeyPairType.RSA.getAlgorithm());
      KeySizeType keySize = request.getKeySize();
      if (keySize == null) {
        keySize = BouncyCastleCertificateRequest.DEFAULT_KEY_SIZE;
      }
      generator.initialize(keySize.getSize());
      this.keyPair = generator.generateKeyPair();
    }

    if (this.signType == null) {
      this.signType = SignatureType.SHA1_RSA;
View Full Code Here

TOP

Related Classes of br.net.woodstock.rockframework.security.cert.KeySizeType

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.