Package com.sun.grid.ca
Class GridCAX500Name
java.lang.Object
com.sun.grid.ca.GridCAX500Name
Helper class for parsing X500 names.
Daemon certificates have the form
....,UID=sdm_daemon_<username>,CN=User certificates have the form,...
....,UID=<username>,...
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the daemonGet the username from the x500 nameboolean
isDaemon()
Determine of the x500 name describes a daemonstatic GridCAX500Name
Parse a x500 name
-
Field Details
-
TYPE_SGE_DAEMON
- See Also:
-
TYPE_SDM_DAEMON
- See Also:
-
TYPE_USER
- See Also:
-
SDM_DAEMON_PREFIX
- See Also:
-
-
Method Details
-
parse
Parse a x500 name- Parameters:
name
- the x500 name- Returns:
- the grid ca x500 name
- Throws:
GridCAException
- ifname
is not a valid grid ca x500 name
-
isDaemon
public boolean isDaemon()Determine of the x500 name describes a daemon- Returns:
true
if the x500 name describes a daemon
-
getUsername
Get the username from the x500 name- Returns:
- the name of the user
-
getDaemonName
Get the name of the daemon- Returns:
- the name of the damon or
null
of the name does not describe a daemon
-