org.globus.gsi.gssapi
Class GlobusGSSName

java.lang.Object
  extended by org.globus.gsi.gssapi.GlobusGSSName
All Implemented Interfaces:
java.io.Serializable, org.ietf.jgss.GSSName

public class GlobusGSSName
extends java.lang.Object
implements org.ietf.jgss.GSSName, java.io.Serializable

An implementation of GSSName.

See Also:
Serialized Form

Field Summary
protected  java.lang.String globusID
           
protected  java.lang.String hostBasedServiceCN
           
protected  javax.security.auth.x500.X500Principal name
           
protected  org.ietf.jgss.Oid nameType
           
 
Fields inherited from interface org.ietf.jgss.GSSName
NT_ANONYMOUS, NT_EXPORT_NAME, NT_HOSTBASED_SERVICE, NT_MACHINE_UID_NAME, NT_STRING_UID_NAME, NT_USER_NAME
 
Constructor Summary
GlobusGSSName()
           
GlobusGSSName(byte[] name)
           
GlobusGSSName(java.lang.String name)
          Creates name from Globus DN
GlobusGSSName(java.lang.String name, org.ietf.jgss.Oid nameType)
          Creates name from X509 name of specified type.
GlobusGSSName(javax.security.auth.x500.X500Principal name)
           
 
Method Summary
 org.ietf.jgss.GSSName canonicalize(org.ietf.jgss.Oid mech)
          Currently not implemented.
 boolean equals(org.ietf.jgss.GSSName another)
           
 byte[] export()
          Currently not implemented.
protected  java.lang.String getHostBasedServiceCN(boolean last)
          Returns the CN corresponding to the host part of the DN
 org.ietf.jgss.Oid getStringNameType()
          Currently not implemented.
 boolean isAnonymous()
           
 boolean isMN()
           
 java.lang.String toString()
          Returns globus ID string representation of the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ietf.jgss.GSSName
equals, hashCode
 

Field Detail

nameType

protected org.ietf.jgss.Oid nameType

name

protected javax.security.auth.x500.X500Principal name

globusID

protected java.lang.String globusID

hostBasedServiceCN

protected java.lang.String hostBasedServiceCN
Constructor Detail

GlobusGSSName

public GlobusGSSName()

GlobusGSSName

public GlobusGSSName(javax.security.auth.x500.X500Principal name)

GlobusGSSName

public GlobusGSSName(byte[] name)

GlobusGSSName

public GlobusGSSName(java.lang.String name)
              throws org.ietf.jgss.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:
org.ietf.jgss.GSSException

GlobusGSSName

public GlobusGSSName(java.lang.String name,
                     org.ietf.jgss.Oid nameType)
              throws org.ietf.jgss.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:
org.ietf.jgss.GSSException
Method Detail

isAnonymous

public boolean isAnonymous()
Specified by:
isAnonymous in interface org.ietf.jgss.GSSName

isMN

public boolean isMN()
Specified by:
isMN in interface org.ietf.jgss.GSSName

equals

public boolean equals(org.ietf.jgss.GSSName another)
               throws org.ietf.jgss.GSSException
Specified by:
equals in interface org.ietf.jgss.GSSName
Throws:
org.ietf.jgss.GSSException

toString

public java.lang.String toString()
Returns globus ID string representation of the name. If name represents is an anonymous name string "" is returned.

Specified by:
toString in interface org.ietf.jgss.GSSName
Overrides:
toString in class java.lang.Object

getHostBasedServiceCN

protected java.lang.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

getStringNameType

public org.ietf.jgss.Oid getStringNameType()
                                    throws org.ietf.jgss.GSSException
Currently not implemented.

Specified by:
getStringNameType in interface org.ietf.jgss.GSSName
Throws:
org.ietf.jgss.GSSException

export

public byte[] export()
              throws org.ietf.jgss.GSSException
Currently not implemented.

Specified by:
export in interface org.ietf.jgss.GSSName
Throws:
org.ietf.jgss.GSSException

canonicalize

public org.ietf.jgss.GSSName canonicalize(org.ietf.jgss.Oid mech)
                                   throws org.ietf.jgss.GSSException
Currently not implemented.

Specified by:
canonicalize in interface org.ietf.jgss.GSSName
Throws:
org.ietf.jgss.GSSException


Copyright © 2013. All Rights Reserved.