Class GridCAX500Name


  • public class GridCAX500Name
    extends java.lang.Object
    Helper class for parsing X500 names. Daemon certificates have the form
       ....,UID=sdm_daemon_<username>,CN=,...
     
    User certificates have the form
       ....,UID=<username>,...
     
    • 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 - if name 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

        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 null of the name does not describe a daemon