|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.italiangrid.voms.util.VOMSFQANNamingScheme
public class VOMSFQANNamingScheme
This class provides utility methods that are used for parsing, matching voms FQANs (Fully Qualified Attribute Names).
Field Summary | |
---|---|
static Pattern |
capabilityPattern
|
static String |
capabilitySyntax
|
static Pattern |
fqanPattern
|
static String |
fqanSyntax
|
static Pattern |
groupPattern
|
static String |
groupSyntax
|
static Pattern |
qualifiedRolePattern
|
static String |
qualifiedRoleSyntax
|
static Pattern |
rolePattern
|
static String |
roleSyntax
|
Constructor Summary | |
---|---|
VOMSFQANNamingScheme()
|
Method Summary | |
---|---|
static void |
checkGroup(String fqan)
This methods checks that the fqan passed as argument complies with the syntax used by voms to identify groups. |
static void |
checkRole(String roleName)
This methods checks that the string passed as argument complies with the syntax used by voms to identify roles. |
static void |
checkSyntax(String fqan)
This methods checks that the string passed as argument complies with the voms FQAN syntax. |
static String |
getGroupName(String containerName)
This method extracts group name information from the FQAN passed as argument. |
static String |
getRoleName(String containerName)
This method extracts the role name information from the FQAN passed as argument. |
static boolean |
isGroup(String groupName)
This methods checks that the FQAN passed as argument identifies a voms group. |
static boolean |
isQualifiedRole(String fqan)
This methods checks that the FQAN passed as argument identifies a qualified voms role, i.e., a role defined in the context of a voms group. |
static boolean |
isRole(String roleName)
This methods checks that the FQAN passed as argument identifies a voms role. |
static String |
toOldQualifiedRoleSyntax(String qualifiedRole)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String fqanSyntax
public static final String groupSyntax
public static final String roleSyntax
public static final String qualifiedRoleSyntax
public static final String capabilitySyntax
public static final Pattern fqanPattern
public static final Pattern groupPattern
public static final Pattern rolePattern
public static final Pattern qualifiedRolePattern
public static final Pattern capabilityPattern
Constructor Detail |
---|
public VOMSFQANNamingScheme()
Method Detail |
---|
public static void checkSyntax(String fqan)
fqan
- the string that must be checked for compatibility with FQAN
syntax.
VOMSError
- If there's an error in the FQAN syntax.public static void checkGroup(String fqan)
fqan
- the string that has to be checked.
VOMSError
- If the string passed as argument doens not comply with the
voms sytax.public static void checkRole(String roleName)
roleName
-
VOMSError
- If the string passed as argument doens not comply with the
voms sytax.public static boolean isGroup(String groupName)
groupName
- the string to check.
public static boolean isRole(String roleName)
roleName
- the string to check.
public static boolean isQualifiedRole(String fqan)
fqan
- the string to check.
public static String getRoleName(String containerName)
containerName
- the FQAN
public static String getGroupName(String containerName)
containerName
- the FQAN
public static String toOldQualifiedRoleSyntax(String qualifiedRole)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |