|
||||||||||
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(String userDN)
Creates a GRID credential with DN. |
|
GridUser(String userDN,
String fqan)
Creates a GRID credential with DN and FQAN. |
|
GridUser(String userDN,
String fqan,
boolean enforceFqanWellFormedness)
Creates a GRID credential with DN and FQAN. |
|
GridUser(String userDN,
String fqan,
String email)
Creates a new object representing a Grid credential. |
|
GridUser(String userDN,
String fqan,
String email,
boolean enforceFqanWellFormedness)
Creates a new object representing a Grid credential. |
Method Summary | |
---|---|
int |
compareDn(GridUser user)
|
int |
compareDn(String userDn)
|
boolean |
equals(Object obj)
A GridUser will be equal only to another GridUser with the same DN and FQAN. |
String |
getCertificateDN()
Retrieve the certificate DN of the user. |
String |
getEmail()
Retrieve the email 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(String certificateDN)
Changes the certificate DN for the Grid credential. |
void |
setEmail(String email)
Changes the email. |
void |
setVoFQAN(FQAN voFQAN)
Sets the VOMS Fully Qualified Attribute name for the credential. |
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(String userDN)
public GridUser(String userDN, String fqan)
public GridUser(String userDN, String fqan, boolean enforceFqanWellFormedness)
public GridUser(String userDN, String fqan, String email)
userDN
- the DN of the user certificate (i.e. "/DC=org/DC=doegrids/OU=People/CN=John Smith")fqan
- The Fully Qualified Attribute name (i.e. "/atlas/production/Role=Leader")email
- public GridUser(String userDN, String fqan, String email, boolean enforceFqanWellFormedness)
userDN
- the DN of the user certificate (i.e. "/DC=org/DC=doegrids/OU=People/CN=John Smith")fqan
- The Fully Qualified Attribute name (i.e. "/atlas/production/Role=Leader")email
- Method Detail |
---|
public int compareDn(GridUser user)
user
-
public int compareDn(String userDn)
userDn
-
public boolean equals(Object obj)
equals
in class Object
obj
- another object
public String getCertificateDN()
public String getEmail()
public FQAN getVoFQAN()
public int hashCode()
hashCode
in class Object
public void setCertificateDN(String certificateDN)
certificateDN
- A GRID certificate DN (i.e. "/DC=org/DC=doegrids/OU=People/CN=Gabriele Carcassi")public void setEmail(String email)
email
- public void setVoFQAN(FQAN voFQAN)
voFQAN
- The VOMS FQAN selected with voms-proxy-init (i.e. "/atlas/production/Role=Leader")public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |