Package org.platformlayer.auth.model

Examples of org.platformlayer.auth.model.CertificateInfo


  protected void requireSystemAccess() throws AuthenticatorException {
    X509Certificate[] certChain = getCertificateChain();
    if (certChain != null && certChain.length != 0) {
      CertificateChainInfo chain = new CertificateChainInfo();
      for (X509Certificate cert : certChain) {
        CertificateInfo info = new CertificateInfo();

        info.publicKey = Hex.toHex(cert.getPublicKey().getEncoded());
        info.subjectDN = Certificates.getSubject(cert);

        // Md5Hash hash = OpenSshUtils.getSignature(cert.getPublicKey());
View Full Code Here


      return null;
    }

    // If it's a single cert; we check the cert.
    // Otherwise, we assume a CA signed the tail cert, so we check the penultimate cert
    CertificateInfo inspect;
    if (certChainInfo.certificates.size() == 1) {
      inspect = certChainInfo.certificates.get(0);
    } else {
      inspect = certChainInfo.certificates.get(1);
    }
View Full Code Here

TOP

Related Classes of org.platformlayer.auth.model.CertificateInfo

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.