Examples of CertificateDetail


Examples of com.alu.e3.data.model.CertificateDetail

    Certificate cert = new Certificate();
    cert.setData(sslCert.getContent());
    cert.setId(sslCert.getId());
    cert.setPassword(sslCert.getKeyId());

    CertificateDetail cd = new CertificateDetail();
    cd.setId(sslCert.getId());
    cd.setKeyId(sslCert.getKeyId());
    cd.setName(sslCert.getDisplayName());

    cert.setCertDetail(cd);

    return cert;
  }
View Full Code Here

Examples of com.alu.e3.data.model.CertificateDetail

    if(logger.isDebugEnabled()) {
      logger.debug("Installing default 1Way Cert ...");
    }
    Certificate defaultCert = new Certificate();
    CertificateDetail defaultCertDetail = new CertificateDetail();
   
    defaultCert.setId(DEFAULT_CERT_ID);
    defaultCert.setCertDetail(defaultCertDetail);
    defaultCert.setData(certData);
    defaultCert.setPassword(DEFAULT_CERT_ID);
   
    defaultCertDetail.setId(DEFAULT_CERT_ID);
    defaultCertDetail.setKeyId(DEFAULT_KEY_ID);
    defaultCertDetail.setName(DEFAULT_CERT_NAME);
   
    dataManager.addCert(defaultCert);
   
    // Now, key is installed, cert is installer under the previous key,0
    // let's update the key to use the default cert
View Full Code Here

Examples of com.alu.e3.data.model.CertificateDetail

    if( cert.getData() != null && !cert.getData().isEmpty() )
      throw new IllegalArgumentException("Certificate data cannot be changed with an update");


    Certificate knownCert = getCertById(cert.getId(), true);
    CertificateDetail knownCertDetail = knownCert.getCertDetail();

    if(cert.getCertDetail().getName() != null){
      knownCertDetail.setName(cert.getCertDetail().getName());
    }

    if(cert.getCertDetail().getKeyId() != null){
      if( !cachingTableKey.containsKey(cert.getCertDetail().getKeyId())){
        throw new IllegalArgumentException("The Key with that ID [" + cert.getCertDetail().getKeyId() + "] does not exist");
      }
      knownCertDetail.setKeyId(cert.getCertDetail().getKeyId());
    }

    cachingTableCertificate.set(cert.getId(), knownCert);
    cachingTableCertificateDetails.set(cert.getId(), knownCertDetail);
  }
View Full Code Here

Examples of com.alu.e3.data.model.CertificateDetail

    if( cert.getData() != null && !cert.getData().isEmpty() )
      throw new IllegalArgumentException("CA data cannot be changed with an update");


    Certificate knownCert = getCAById(cert.getId());
    CertificateDetail knownCertDetail = knownCert.getCertDetail();

    if(cert.getCertDetail().getName() != null){
      knownCertDetail.setName(cert.getCertDetail().getName());
    }

    cachingTableCA.set(cert.getId(), knownCert);
    cachingTableCADetails.set(cert.getId(), knownCertDetail);
  }
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.