Package org.globus.gsi.gssapi
Class GlobusGSSName
java.lang.Object
org.globus.gsi.gssapi.GlobusGSSName
- All Implemented Interfaces:
Serializable
,GSSName
An implementation of
GSSName
.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected X500Principal
protected Oid
(package private) static final GlobusGSSName.ReverseDNSCache
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
ConstructorsConstructorDescriptionGlobusGSSName
(byte[] name) GlobusGSSName
(String name) Creates name from Globus DNGlobusGSSName
(String name, Oid nameType) Creates name from X509 name of specified type.GlobusGSSName
(X500Principal name) -
Method Summary
Modifier and TypeMethodDescriptioncanonicalize
(Oid mech) Currently not implemented.private static boolean
compareHost
(String host1, int i, String host2, int j) boolean
byte[]
export()
Currently not implemented.private static String
protected String
getHostBasedServiceCN
(boolean last) Returns the CN corresponding to the host part of the DNprivate static String
getService
(String name) Currently not implemented.boolean
boolean
isMN()
(package private) static String
private void
toString()
Returns globus ID string representation of the name.private void
-
Field Details
-
reverseDNSCache
-
nameType
-
name
-
globusID
-
hostBasedServiceCN
-
-
Constructor Details
-
GlobusGSSName
public GlobusGSSName() -
GlobusGSSName
-
GlobusGSSName
public GlobusGSSName(byte[] name) -
GlobusGSSName
Creates name from Globus DN- Parameters:
name
- Globus DN (e.g. /C=US/O=Globus/..) If null it is considered set asGSSName.ANONYMOUS
name type.- Throws:
GSSException
-
GlobusGSSName
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 asGSSName.ANONYMOUS
name type.nameType
- name type. OnlyGSSName.NT_ANONYMOUS
orGSSName.NT_HOSTBASED_SERVICE
is supported. Maybe be null.- Throws:
GSSException
-
-
Method Details
-
queryHost
- Throws:
UnknownHostException
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymous
in interfaceGSSName
-
isMN
public boolean isMN() -
equals
- Specified by:
equals
in interfaceGSSName
- Throws:
GSSException
-
toString
Returns globus ID string representation of the name. If name represents is an anonymous name string "<anonymous>" is returned. -
getHostBasedServiceCN
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
-
getService
-
getHost
-
compareHost
-
getStringNameType
Currently not implemented.- Specified by:
getStringNameType
in interfaceGSSName
- Throws:
GSSException
-
export
Currently not implemented.- Specified by:
export
in interfaceGSSName
- Throws:
GSSException
-
canonicalize
Currently not implemented.- Specified by:
canonicalize
in interfaceGSSName
- Throws:
GSSException
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
ClassNotFoundException
-