Class GlobusGSSName

    • Field Detail

      • nameType

        protected Oid nameType
      • globusID

        protected String globusID
      • hostBasedServiceCN

        protected String hostBasedServiceCN
    • Constructor Detail

      • GlobusGSSName

        public GlobusGSSName()
      • GlobusGSSName

        public GlobusGSSName​(byte[] name)
      • GlobusGSSName

        public GlobusGSSName​(String name)
                      throws GSSException
        Creates name from Globus DN
        Parameters:
        name - Globus DN (e.g. /C=US/O=Globus/..) If null it is considered set as GSSName.ANONYMOUS name type.
        Throws:
        GSSException
      • GlobusGSSName

        public GlobusGSSName​(String name,
                             Oid nameType)
                      throws GSSException
        Creates name from X509 name of specified type.
        Parameters:
        name - Globus DN (e.g. /C=US/O=Globus/..) or service@host name. If null it is considered set as GSSName.ANONYMOUS name type.
        nameType - name type. Only GSSName.NT_ANONYMOUS or GSSName.NT_HOSTBASED_SERVICE is supported. Maybe be null.
        Throws:
        GSSException
    • Method Detail

      • isAnonymous

        public boolean isAnonymous()
        Specified by:
        isAnonymous in interface GSSName
      • isMN

        public boolean isMN()
        Specified by:
        isMN in interface GSSName
      • toString

        public String toString()
        Returns globus ID string representation of the name. If name represents is an anonymous name string "<anonymous>" is returned.
        Specified by:
        toString in interface GSSName
        Overrides:
        toString in class Object
      • getHostBasedServiceCN

        protected String getHostBasedServiceCN​(boolean last)
        Returns the CN corresponding to the host part of the DN
        Parameters:
        last - true if the CN is assumed to be the last CN attribute in the RFC 2253 formatted DN, else false to assume it is the first DN attribute
        Returns:
        the CN of the host based service