public class GlobusGSSName
extends java.lang.Object
implements org.ietf.jgss.GSSName, java.io.Serializable
GSSName
.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
globusID |
protected java.lang.String |
hostBasedServiceCN |
protected javax.security.auth.x500.X500Principal |
name |
protected org.ietf.jgss.Oid |
nameType |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected org.ietf.jgss.Oid nameType
protected javax.security.auth.x500.X500Principal name
protected java.lang.String globusID
protected java.lang.String hostBasedServiceCN
public GlobusGSSName()
public GlobusGSSName(javax.security.auth.x500.X500Principal name)
public GlobusGSSName(byte[] name)
public GlobusGSSName(java.lang.String name) throws org.ietf.jgss.GSSException
name
- Globus DN (e.g. /C=US/O=Globus/..) If null
it is considered set as GSSName.ANONYMOUS
name type.org.ietf.jgss.GSSException
public GlobusGSSName(java.lang.String name, org.ietf.jgss.Oid nameType) throws org.ietf.jgss.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.org.ietf.jgss.GSSException
public boolean isAnonymous()
isAnonymous
in interface org.ietf.jgss.GSSName
public boolean isMN()
isMN
in interface org.ietf.jgss.GSSName
public boolean equals(org.ietf.jgss.GSSName another) throws org.ietf.jgss.GSSException
equals
in interface org.ietf.jgss.GSSName
org.ietf.jgss.GSSException
public java.lang.String toString()
toString
in interface org.ietf.jgss.GSSName
toString
in class java.lang.Object
protected java.lang.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 org.ietf.jgss.Oid getStringNameType() throws org.ietf.jgss.GSSException
getStringNameType
in interface org.ietf.jgss.GSSName
org.ietf.jgss.GSSException
public byte[] export() throws org.ietf.jgss.GSSException
export
in interface org.ietf.jgss.GSSName
org.ietf.jgss.GSSException
public org.ietf.jgss.GSSName canonicalize(org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
canonicalize
in interface org.ietf.jgss.GSSName
org.ietf.jgss.GSSException
Copyright © 2012. All Rights Reserved.