Class GridCAX500Name

java.lang.Object
com.sun.grid.ca.GridCAX500Name

public class GridCAX500Name extends Object
Helper class for parsing X500 names. Daemon certificates have the form
   ....,UID=sdm_daemon_<username>,CN=,...
 
User certificates have the form
   ....,UID=<username>,...
 
  • Field Details

  • Method Details

    • parse

      public static GridCAX500Name parse(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 String getUsername()
      Get the username from the x500 name
      Returns:
      the name of the user
    • getDaemonName

      public String getDaemonName()
      Get the name of the daemon
      Returns:
      the name of the damon or null of the name does not describe a daemon