Methods Summary |
---|
public java.lang.Object | getAttribute(java.lang.String key)Return the requested attribute for the user.
Not really needed.
return attributes.get(key);
|
public java.util.Enumeration | getAttributeNames()Return the names of the supported attributes for this user.
Not really needed.
return attributes.keys();
|
public java.lang.String[] | getGroups()Return the names of the groups this user belongs to.
return groups;
|
public byte[] | getHash()Get hash value.
return hash;
|
public com.sun.enterprise.security.auth.realm.Realm | getRealm()Returns the realm with which this user is associated
return Realm.getInstance(realm);
|
public byte[] | getSalt()Returns salt value.
return salt;
|
public void | setGroups(java.lang.String[] grp)Set group membership.
this.groups = grp;
|
public void | setGroups(java.util.Vector grp)Set group membership.
String[] g = new String[grp.size()];
grp.toArray(g);
this.groups = g;
attributes.put(GROUP_KEY, groups);
|
public void | setHash(byte[] hash)Set hash value.
this.hash = hash;
|
public void | setSalt(byte[] salt)Set salt value.
this.salt = salt;
|