1 7 8 package com.sun.security.auth.module; 9 10 import javax.security.auth.*; 11 import javax.security.auth.login.*; 12 13 19 public class SolarisSystem { 20 21 private native void getSolarisInfo(); 22 23 protected String username; 24 protected long uid; 25 protected long gid; 26 protected long[] groups; 27 28 32 public SolarisSystem() { 33 System.loadLibrary("jaas_unix"); 34 getSolarisInfo(); 35 } 36 37 44 public String getUsername() { 45 return username; 46 } 47 48 55 public long getUid() { 56 return uid; 57 } 58 59 66 public long getGid() { 67 return gid; 68 } 69 70 77 public long[] getGroups() { 78 return groups; 79 } 80 } 81 | Popular Tags |