Package org.geogrid.aist.tsukubagama.services.webservice

Examples of org.geogrid.aist.tsukubagama.services.webservice.TsukubaGAMARegistryResult


        }
        param.setCredentialDescription(buf.toString());
    }

    private TsukubaGAMARegistryResult buildResult(GlobusGSSCredentialImpl userCert) {
        TsukubaGAMARegistryResult result = new TsukubaGAMARegistryResult();
        X509Certificate cert =
            userCert.getGlobusCredential().getIdentityCertificate();

        String certificateSubject =
            userCert.getGlobusCredential().getIdentity();
        String issuerSubject =
            CertUtil.toGlobusID(userCert.getGlobusCredential().getIssuer());

        result.setIssuedCertificateSubject(certificateSubject);
        result.setIssuerSubject(issuerSubject);
        result.setExpireDate( cert.getNotAfter() );
        result.setIssuedCertificateSerial(cert.getSerialNumber());

        return result;
    }
View Full Code Here


        String lastName = request.getAttribute("lastName");
        if ( ! isBlank(lastName) ) {
            attrs.put("lastName", lastName);
        }

        TsukubaGAMARegistryResult result = null;
        try {
            result =  gamaClient.addUser(username, password, subject, attrs);
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            throw new AccountActivationException(e);
        }
        addNewMemberToVOMRS(request, result);

        request.removeAttribute("predictedSubject");
        request.setAttribute("subject", result.getIssuedCertificateSubject());
        request.setExpireDate( result.getExpireDate() );

        request.changeStatus(AccountRequest.Status.ACTIVATED);
        request.appendAdminComments("Account activated.");
    }
View Full Code Here

TOP

Related Classes of org.geogrid.aist.tsukubagama.services.webservice.TsukubaGAMARegistryResult

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.