|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.gums.FQAN
public class FQAN
Represent a VOMS extended proxy credential as defined in http://edg-wp2.web.cern.ch/edg-wp2/security/voms/edg-voms-credential.pdf.
A Fully Qualified Attribute Name consists of a VO, a group, a role and a capability. Only the VO is mandatory. The syntax is /VO[/group[/subgroup(s)]][/Role=role][/Capability=cap].
The class will always check that every modification matches the regex /[\w-\.]+(/[\w-\.]+)*(/Role=[\w-\.]+)?(/Capability=[\w-\.]+)? which fully defines all the characters allowed. This differs slightly from the one contained in the specification, as it cointained some small errors. It matches the description of the syntax of the document.
Constructor Summary | |
---|---|
FQAN(java.lang.String fqan)
Creates a FQAN based on String representation. |
|
FQAN(java.lang.String vo,
java.lang.String group,
java.lang.String role,
java.lang.String capability)
Creates a FQAN based on the different pieces of information. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
FQANs are equals to each other if their vo, group, role and capability are the same. |
java.lang.String |
getCapability()
The capability used within the FQAN. |
java.lang.String |
getFqan()
A full String representation of the FQAN. |
java.lang.String |
getGroup()
The path which includes the groups and subgroups within the FQAN. |
java.lang.String |
getRole()
The role used within the FQAN. |
java.lang.String |
getVo()
Returns the VO corresponding to the FQAN. |
int |
hashCode()
A hashcode generated from the string representation. |
java.lang.String |
toString()
Returns the full string representation of the FQAN. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FQAN(java.lang.String fqan)
fqan
- A VOMS FQAN (i.e. "/atlas/production/Role=Leader")public FQAN(java.lang.String vo, java.lang.String group, java.lang.String role, java.lang.String capability)
vo
- The VO name, which cannot be null (i.e. "atlas")group
- A group path, including subgroups (i.e. "/production")role
- The role (i.e. "Leader")capability
- A capability (i.e. "capability"). Note capabilities are
being deprecated in VOMS.Method Detail |
---|
public java.lang.String getFqan()
public java.lang.String getVo()
public java.lang.String getGroup()
public java.lang.String getRole()
public java.lang.String getCapability()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Another object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |