Package org.apache.hadoop.security

Examples of org.apache.hadoop.security.GroupMappingServiceProvider


    //check for a dummy non-existent user (both the implementations should
    //return an empty list
    testForUser("fooBarBaz1234DoesNotExist");
  }
  private void testForUser(String user) throws Exception {
    GroupMappingServiceProvider g = new ShellBasedUnixGroupsMapping();
    List<String> shellBasedGroups = g.getGroups(user);
    g = new JniBasedUnixGroupsMapping();
    List<String> jniBasedGroups = g.getGroups(user);
   
    String[] shellBasedGroupsArray = shellBasedGroups.toArray(new String[0]);
    Arrays.sort(shellBasedGroupsArray);
    String[] jniBasedGroupsArray = jniBasedGroups.toArray(new String[0]);
    Arrays.sort(jniBasedGroupsArray);
View Full Code Here


    //check for a dummy non-existent user (both the implementations should
    //return an empty list
    testForUser("fooBarBaz1234DoesNotExist");
  }
  private void testForUser(String user) throws Exception {
    GroupMappingServiceProvider g = new ShellBasedUnixGroupsMapping();
    List<String> shellBasedGroups = g.getGroups(user);
    g = new JniBasedUnixGroupsMapping();
    List<String> jniBasedGroups = g.getGroups(user);
   
    String[] shellBasedGroupsArray = shellBasedGroups.toArray(new String[0]);
    Arrays.sort(shellBasedGroupsArray);
    String[] jniBasedGroupsArray = jniBasedGroups.toArray(new String[0]);
    Arrays.sort(jniBasedGroupsArray);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.security.GroupMappingServiceProvider

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.