| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.w3c.jigsaw.acl.AuthUserPrincipal
public class AuthUserPrincipal
| Field Summary | |
|---|---|
protected  IPMatcher | 
ipmatcher
 | 
protected  java.lang.String | 
name
 | 
protected  java.lang.String | 
password
 | 
protected  java.lang.String | 
realm
 | 
protected  java.util.Hashtable | 
values
 | 
| Constructor Summary | |
|---|---|
AuthUserPrincipal(AuthUser user,
                  java.lang.String realm)
 | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(java.lang.Object another)
 | 
 java.lang.String | 
getName()
 | 
 java.lang.String | 
getPassword()
Get the password associated to this principal.  | 
 java.lang.String | 
getRealm()
Get the realm associated to this principal.(could be his group)  | 
 java.lang.Object | 
getValue(java.lang.String name)
Get a parameter value.  | 
 int | 
hashCode()
 | 
 boolean | 
matchIP(java.net.InetAddress adr)
Return true if the IPadress associated to this principal match the given one.  | 
 void | 
setValue(java.lang.String name,
         java.lang.Object value)
Set a parameter.  | 
 java.lang.String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected java.lang.String name
protected java.lang.String password
protected java.lang.String realm
protected java.util.Hashtable values
protected IPMatcher ipmatcher
| Constructor Detail | 
|---|
public AuthUserPrincipal(AuthUser user,
                         java.lang.String realm)
| Method Detail | 
|---|
public boolean equals(java.lang.Object another)
equals in interface java.security.Principalequals in class java.lang.Objectpublic java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic java.lang.String getName()
getName in interface java.security.Principalpublic java.lang.String getRealm()
AclPrincipal
getRealm in interface AclPrincipalpublic java.lang.String getPassword()
AclPrincipal
getPassword in interface AclPrincipal
public void setValue(java.lang.String name,
                     java.lang.Object value)
AclPrincipal
setValue in interface AclPrincipalname - the parameter namevalue - the parameter valuepublic java.lang.Object getValue(java.lang.String name)
AclPrincipal
getValue in interface AclPrincipalname - the parameter name.
public boolean matchIP(java.net.InetAddress adr)
AclPrincipal
matchIP in interface AclPrincipaladr - an IP adress
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||