com.ibm.security.jgss.mech.spnego
Class SPNEGOName
- java.lang.Object
com.ibm.security.jgss.mech.spnego.SPNEGOName
All implemented interfaces:
- public class SPNEGOName
- extends java.lang.Object
- implements GSSNameSpi
Version:
1.0
Author:
Yanni Zhang
Constructor Summary
Constructor and Description |
---|
SPNEGOName(byte[] name,Oid nameType)
Constructs a SPNEGOName
|
SPNEGOName(java.lang.String name,Oid nameType)
Constructs a SPNEGOName
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
equals(GSSNameSpi name)
Equals method for the GSSNameSpi objects.
|
|
export()
Returns a flat name representation for this object.
|
getMechanism()
Get the mechanism type that this NameElement corresponds to.
|
|
|
getProvider()
|
getStringNameType()
Returns the oid describing the format of the printable name.
|
|
|
isAnonymousName()
Indicates if this name object represents an Anonymous name.
|
|
toString()
Returns a string representation for this name.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail
SPNEGOName
- public SPNEGOName(java.lang.String name,
- Oid nameType)
- throws GSSException
Constructs a SPNEGOName
Parameters:
name
- name string nameType
- the object identifier corresponding to the name type.
SPNEGOName
support any name types. If null
,
then it could be one of the name types supported by selected mechanism Throws:
SPNEGOName
- public SPNEGOName(byte[] name,
- Oid nameType)
- throws GSSException
Constructs a SPNEGOName
Parameters:
name
- name byte array nameType
- the object identifier corresponding to the name type.
SPNEGOName
support any name types. If null
,
then it could be one of the name types supported by selected mechanism Throws:
Method Detail
getProvider
- public java.security.Provider getProvider( )
Specified by:
getProvider
in interface GSSNameSpi
equals
- public boolean equals(GSSNameSpi name)
- throws GSSException
Equals method for the GSSNameSpi objects.
If either name denotes an anonymous principal, the call should
return false.
Specified by:
equals
in interface GSSNameSpi
Parameters:
name
- to be compared with Throws:
GSSException
- with major codes of BAD_NAMETYPE,
BAD_NAME, FAILURE export
- public byte[] export()
- throws GSSException
Returns a flat name representation for this object. The name
format is defined in RFC 2078.
Specified by:
export
in interface GSSNameSpi
Returns:
the flat name representation for this object
Throws:
GSSException
- with major codes NAME_NOT_MN, BAD_NAME,
BAD_NAME, FAILURE. getMechanism
- public Oid getMechanism()
Get the mechanism type that this NameElement corresponds to.
Specified by:
getMechanism
in interface GSSNameSpi
Returns:
the Oid of the mechanism type
toString
- public java.lang.String toString( )
Returns a string representation for this name. The printed
name type can be obtained by calling getStringNameType().
getStringNameType
- public Oid getStringNameType()
Returns the oid describing the format of the printable name.
Specified by:
getStringNameType
in interface GSSNameSpi
Returns:
the Oid for the format of the printed name
isAnonymousName
- public boolean isAnonymousName( )
Indicates if this name object represents an Anonymous name.
Specified by:
isAnonymousName
in interface GSSNameSpi