Package org.glite.security.voms

Examples of org.glite.security.voms.FQAN


        if ((vogroup == null) || (vomsAttributes == null)) {
            return false;
        }
        for (Iterator i = vogroup.iterator(); i.hasNext(); ) {
            String fqan_str = (String)i.next();
            FQAN fqan = new FQAN(fqan_str);
            for (Iterator j = vomsAttributes.iterator(); j.hasNext(); ) {
                VOMSAttribute attr = (VOMSAttribute)j.next();
                if (containsGroup(fqan, attr)) {
                    return true;
                }
View Full Code Here


        List vomsAttributes = VomsProxyCertificateUtil.getVOMSAttributes(cred);
        if (vomsAttributes == null) {
            return false;
        }

        FQAN fqan = null;
        if (vo.startsWith("/")) {
            fqan = new FQAN(vo);
        } else {
            fqan = new FQAN("/" + vo);
        }
        for (Iterator j = vomsAttributes.iterator(); j.hasNext(); ) {
            VOMSAttribute attr = (VOMSAttribute)j.next();
            if (containsGroup(fqan, attr)) {
                return true;
View Full Code Here

    }

    private boolean containsGroup(FQAN fqan, VOMSAttribute attr) {
        List fqans = attr.getListOfFQAN();
        for (Iterator k = fqans.iterator(); k.hasNext(); ) {
            FQAN user_fqan = (FQAN)k.next();
            if (fqan.getGroup().equals(user_fqan.getGroup())) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of org.glite.security.voms.FQAN

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.