1 19 20 package com.sslexplorer.unixauth; 21 22 import java.util.Date ; 23 24 import com.sslexplorer.realms.Realm; 25 import com.sslexplorer.security.DefaultUser; 26 import com.sslexplorer.security.Role; 27 28 35 public class UNIXUser extends DefaultUser { 36 37 private char[] password; 38 private String home; 39 private String shell; 40 private int uid; 41 private int gid; 42 43 55 public UNIXUser(String username, String email, char[] password, int uid, int gid, String fullname, String home, String shell, Role[] roles, Realm realm) { 56 super(username, email, fullname, new Date (), realm); 57 setRoles(roles); 58 this.uid = uid; 59 this.password = password; 60 this.gid = gid; 61 this.home = home; 62 this.shell = shell; 63 } 64 65 68 public int getGid() { 69 return gid; 70 } 71 72 75 public void setGid(int gid) { 76 this.gid = gid; 77 } 78 79 82 public String getHome() { 83 return home; 84 } 85 86 89 public void setHome(String home) { 90 this.home = home; 91 } 92 93 96 public char[] getPassword() { 97 return password; 98 } 99 100 103 public void setPassword(char[] password) { 104 this.password = password; 105 } 106 107 110 public String getShell() { 111 return shell; 112 } 113 114 117 public void setShell(String shell) { 118 this.shell = shell; 119 } 120 121 124 public int getUid() { 125 return uid; 126 } 127 128 131 public void setUid(int uid) { 132 this.uid = uid; 133 } 134 135 136 } | Popular Tags |