|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.authz.common.fqan.FQAN
public class FQAN
Represents an FQAN.
Field Summary | |
---|---|
static java.lang.String |
CAPABILITY
Capability component identifier, "Capability" . |
static java.lang.String |
NULL
The value "NULL", used in the canonical form to represent the absence of a Role or Capability. |
static java.lang.String |
ROLE
Role component identifier, "Role" . |
static java.lang.String |
WILDCARD
The wildcard * used for pattern matching |
Constructor Summary | |
---|---|
FQAN(java.lang.String fqanGroupName)
Constructor with a FQAN group name, but without Role (NULL). |
|
FQAN(java.lang.String fqanGroupName,
java.lang.String fqanRole)
Constructor with a FQAN group name and a Role value. |
|
FQAN(java.lang.String fqanGroupName,
java.lang.String fqanRole,
java.lang.String fqanCapability)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getCapability()
Gets the Capability value of the FQAN i.e /Capability=value . |
java.lang.String |
getGroupName()
Gets the group name component of the FQAN. |
java.lang.String |
getRole()
Gets the Role value of the FQAN i.e. |
int |
hashCode()
|
boolean |
matches(FQAN regexpFQAN)
Checks if this FQAN matches the given regular expression FQAN |
boolean |
matches(java.lang.String regexp)
Checks whether this FQAN matches the given FQAN regular expression. |
protected boolean |
matchesGroupName(FQAN regexpFQAN)
Checks if the group name of this FQAN matches a group name regular expression. |
protected boolean |
matchesRole(FQAN regexpFQAN)
Checks if the role of this FQAN matches a role regular expression. |
static FQAN |
parseFQAN(java.lang.String fqan)
Parses an FQAN, in string form, in to an FQAN . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ROLE
public static final java.lang.String CAPABILITY
public static final java.lang.String NULL
public static final java.lang.String WILDCARD
*
used for pattern matching
Constructor Detail |
---|
public FQAN(java.lang.String fqanGroupName, java.lang.String fqanRole, java.lang.String fqanCapability)
fqanGroupName
- group name of the FQAN, may not be nullfqanRole
- role value of the FQAN, may be nullfqanCapability
- capability value of the FQAN, may be nullpublic FQAN(java.lang.String fqanGroupName, java.lang.String fqanRole)
fqanGroupName
- group name of the FQAN, may not be nullfqanRole
- role value of the FQAN, may be nullpublic FQAN(java.lang.String fqanGroupName)
fqanGroupName
- group name of the FQAN, may not be nullMethod Detail |
---|
public java.lang.String getGroupName()
public java.lang.String getRole()
/Role=value
.
public java.lang.String getCapability()
/Capability=value
.
public static FQAN parseFQAN(java.lang.String fqan) throws java.text.ParseException
FQAN
.
fqan
- FQAN in string form
java.text.ParseException
- thrown if the FQAN string is invalidpublic 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
public boolean matches(java.lang.String regexp) throws java.text.ParseException
regexp
- the FQAN regular expression
java.text.ParseException
- thrown if the given expression is not a valid FQAN regular
expressionpublic boolean matches(FQAN regexpFQAN) throws java.text.ParseException
regexpFQAN
- The regular expression FQAN
java.text.ParseException
- thrown if the given expression is not a valid FQAN regular
expressionprotected boolean matchesGroupName(FQAN regexpFQAN) throws java.text.ParseException
regexpFQAN
- the group name regular expression
java.text.ParseException
- thrown if the regular expression is not validprotected boolean matchesRole(FQAN regexpFQAN) throws java.text.ParseException
regexpFQAN
- the role regular expression
java.text.ParseException
- thrown if the regular expression is not valid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |