Package org.glite.authz.pap.services.authz_management.axis_skeletons

Examples of org.glite.authz.pap.services.authz_management.axis_skeletons.PAPPrincipal


        return wsACE;
       
    }
    protected PAPPrincipal adminToPrincipal(PAPAdmin admin){
       
        PAPPrincipal principal = new PAPPrincipal();
       
        if (admin instanceof X509Principal){
       
            principal.setType( "x509-dn" );
            principal.setName( admin.getName() );
       
        } else if (admin instanceof VOMSFQAN){
           
            principal.setType( "voms-fqan" );
            principal.setName( admin.getName());
           
        }
       
        return principal;
    }
View Full Code Here


      }
     
    }
    public static PAPPrincipal principalFromString(String principalString){
       
        PAPPrincipal principal = new PAPPrincipal();
       
        try{
           
            PathNamingScheme.checkSyntax( principalString );
            principal.setType( "voms-fqan" );
            principal.setName( principalString );
           
       
        }catch(VOMSSyntaxException e){
           
            principal.setType( "x509-dn" );
            if (principalString.equals( "ANYONE" ))
                principal.setName( ANY_AUTHENTICATED_USER_DN  );
            else{
               
              principal.setName( convertRFC2253toX500Subject(principalString) );
               
            }
           
        }
       
View Full Code Here

        String[] args = commandLine.getArgs();
       
        if (args.length != 2)
            throw new ParseException("Wrong number of arguments!");
       
        PAPPrincipal principal = AuthzCLIUtils.principalFromString( args[1] );
       
        authzMgmtClient.removeACE( null, principal );
       
        return ExitStatus.SUCCESS.ordinal();
       
View Full Code Here

            throw new ParseException("Wrong number of arguments!");
       
        String principalString = args[1];
        String permString = args[2];
       
        PAPPrincipal principal = AuthzCLIUtils.principalFromString( principalString );
        String[] permissions = AuthzCLIUtils.permissionsFromString( permString );
       
        authzMgmtClient.addACE( null, principal, permissions );
       
        return ExitStatus.SUCCESS.ordinal();
View Full Code Here

TOP

Related Classes of org.glite.authz.pap.services.authz_management.axis_skeletons.PAPPrincipal

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.