Package com.sun.grid.ca
Class GridCAX500Name
- java.lang.Object
-
- com.sun.grid.ca.GridCAX500Name
-
public class GridCAX500Name extends java.lang.ObjectHelper 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 Modifier and Type Field Description static java.lang.StringSDM_DAEMON_PREFIXstatic java.lang.StringTYPE_SDM_DAEMONstatic java.lang.StringTYPE_SGE_DAEMONstatic java.lang.StringTYPE_USER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDaemonName()Get the name of the daemonjava.lang.StringgetUsername()Get the username from the x500 namebooleanisDaemon()Determine of the x500 name describes a daemonstatic GridCAX500Nameparse(java.lang.String name)Parse a x500 name
-
-
-
Field Detail
-
TYPE_SGE_DAEMON
public static final java.lang.String TYPE_SGE_DAEMON
- See Also:
- Constant Field Values
-
TYPE_SDM_DAEMON
public static final java.lang.String TYPE_SDM_DAEMON
- See Also:
- Constant Field Values
-
TYPE_USER
public static final java.lang.String TYPE_USER
- See Also:
- Constant Field Values
-
SDM_DAEMON_PREFIX
public static final java.lang.String SDM_DAEMON_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public static GridCAX500Name parse(java.lang.String name) throws GridCAException
Parse a x500 name- Parameters:
name- the x500 name- Returns:
- the grid ca x500 name
- Throws:
GridCAException- ifnameis not a valid grid ca x500 name
-
isDaemon
public boolean isDaemon()
Determine of the x500 name describes a daemon- Returns:
trueif the x500 name describes a daemon
-
getUsername
public java.lang.String getUsername()
Get the username from the x500 name- Returns:
- the name of the user
-
getDaemonName
public java.lang.String getDaemonName()
Get the name of the daemon- Returns:
- the name of the damon or
nullof the name does not describe a daemon
-
-