|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.jigsaw.acl.SimplePrincipal
public class SimplePrincipal
The most simple principal, it takes only the realm name, username and passwd as arguments
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected java.lang.String |
password
|
protected java.lang.String |
realm
|
protected java.util.Hashtable |
values
|
Constructor Summary | |
---|---|
SimplePrincipal(java.lang.String name,
java.lang.String password,
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
Constructor Detail |
---|
public SimplePrincipal(java.lang.String name, java.lang.String password, java.lang.String realm)
Method Detail |
---|
public boolean equals(java.lang.Object another)
equals
in interface java.security.Principal
equals
in class java.lang.Object
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public java.lang.String getName()
getName
in interface java.security.Principal
public java.lang.String getRealm()
AclPrincipal
getRealm
in interface AclPrincipal
public java.lang.String getPassword()
AclPrincipal
getPassword
in interface AclPrincipal
public void setValue(java.lang.String name, java.lang.Object value)
AclPrincipal
setValue
in interface AclPrincipal
name
- the parameter namevalue
- the parameter valuepublic java.lang.Object getValue(java.lang.String name)
AclPrincipal
getValue
in interface AclPrincipal
name
- the parameter name.
public boolean matchIP(java.net.InetAddress adr)
AclPrincipal
matchIP
in interface AclPrincipal
adr
- an IP adress
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |