public class GlobusGSSName extends Object implements GSSName, Serializable
GSSName.| Modifier and Type | Field and Description |
|---|---|
protected String |
globusID |
protected String |
hostBasedServiceCN |
protected X500Principal |
name |
protected Oid |
nameType |
NT_ANONYMOUS, NT_EXPORT_NAME, NT_HOSTBASED_SERVICE, NT_MACHINE_UID_NAME, NT_STRING_UID_NAME, NT_USER_NAME| Constructor and Description |
|---|
GlobusGSSName() |
GlobusGSSName(byte[] name) |
GlobusGSSName(String name)
Creates name from Globus DN
|
GlobusGSSName(String name,
Oid nameType)
Creates name from X509 name of specified type.
|
GlobusGSSName(X500Principal name) |
| Modifier and Type | Method and Description |
|---|---|
GSSName |
canonicalize(Oid mech)
Currently not implemented.
|
boolean |
equals(GSSName another) |
byte[] |
export()
Currently not implemented.
|
protected String |
getHostBasedServiceCN(boolean last)
Returns the CN corresponding to the host part of the DN
|
Oid |
getStringNameType()
Currently not implemented.
|
boolean |
isAnonymous() |
boolean |
isMN() |
String |
toString()
Returns globus ID string representation of the name.
|
protected Oid nameType
protected X500Principal name
protected String globusID
protected String hostBasedServiceCN
public GlobusGSSName()
public GlobusGSSName(X500Principal name)
public GlobusGSSName(byte[] name)
public GlobusGSSName(String name) throws GSSException
name - Globus DN (e.g. /C=US/O=Globus/..) If null
it is considered set as GSSName.ANONYMOUS name type.GSSExceptionpublic GlobusGSSName(String name, Oid nameType) throws GSSException
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.GSSExceptionpublic boolean isAnonymous()
isAnonymous in interface GSSNamepublic boolean equals(GSSName another) throws GSSException
equals in interface GSSNameGSSExceptionpublic String toString()
protected String getHostBasedServiceCN(boolean last)
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
attributepublic Oid getStringNameType() throws GSSException
getStringNameType in interface GSSNameGSSExceptionpublic byte[] export()
throws GSSException
export in interface GSSNameGSSExceptionpublic GSSName canonicalize(Oid mech) throws GSSException
canonicalize in interface GSSNameGSSExceptionCopyright © 2015. All rights reserved.