|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.gums.GridUser
public class GridUser
Represent a GRID Identity in GUMS, which is a certificate with its DN and FQAN.
Constructor Summary | |
---|---|
GridUser()
Creates a GRID credentail with no DN and FQAN. |
|
GridUser(java.lang.String userDN,
java.lang.String fqan)
Creates a new object representing a Grid credential. |
Method Summary | |
---|---|
int |
compareDn(GridUser user)
|
int |
compareDn(java.lang.String userDn)
|
boolean |
equals(java.lang.Object obj)
A GridUser will be equal only to another GridUser with the same DN and FQAN. |
java.lang.String |
getCertificateDN()
Retrieve the certificate DN of the user. |
FQAN |
getVoFQAN()
Retrieve the VOMS Fully Qualified Attribute name. |
int |
hashCode()
Changed to reflect the change in equals, as in Object contract. |
void |
setCertificateDN(java.lang.String certificateDN)
Changes the certificate DN for the Grid credential. |
void |
setVoFQAN(FQAN voFQAN)
Sets the VOMS Fully Qualified Attribute name for the credential. |
java.lang.String |
toString()
Returns a legible String representation for the credentail. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GridUser()
public GridUser(java.lang.String userDN, java.lang.String fqan)
userDN
- the DN of the user certificate (i.e. "/DC=org/DC=doegrids/OU=People/CN=John Smith")fqan
- The Fully Qualified Attribute name String representation (i.e. "/atlas/production/Role=Leader")Method Detail |
---|
public int compareDn(GridUser user)
user
-
public int compareDn(java.lang.String userDn)
userDn
-
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- another object
public java.lang.String getCertificateDN()
public FQAN getVoFQAN()
public int hashCode()
hashCode
in class java.lang.Object
public void setCertificateDN(java.lang.String certificateDN)
certificateDN
- A GRID certificate DN (i.e. "/DC=org/DC=doegrids/OU=People/CN=Gabriele Carcassi")public void setVoFQAN(FQAN voFQAN)
voFQAN
- The VOMS FQAN selected with voms-proxy-init (i.e. "/atlas/production/Role=Leader")public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |