com.ibm.security.jgss.spi

Interface GSSNameSpi

All known implementing classes:
SPNEGOName

  1. public interface GSSNameSpi
This interface is implemented by a mechanism specific name element. A GSSName is conceptually a container class of several name elements from different mechanisms.
Version:
1.3, 12/03/01
Author:
Mayank Upadhyay

Method Summary

Modifier and Type Method and Description
  1. boolean
equals(GSSNameSpi name)
Equals method for the GSSNameSpi objects.
  1. byte[]
export()
Returns a flat name representation for this object.
  1. Oid
getMechanism()
Get the mechanism type that this NameElement corresponds to.
  1. java.security.Provider
getProvider()
  1. Oid
getStringNameType()
Returns the oid describing the format of the printable name.
  1. boolean
isAnonymousName()
Indicates if this name object represents an Anonymous name.
  1. java.lang.String
toString()
Returns a string representation for this name.

Method Detail

getProvider

  1. java.security.Provider getProvider( )

equals

  1. boolean equals(GSSNameSpi name)
  2. throws GSSException
Equals method for the GSSNameSpi objects. If either name denotes an anonymous principal, the call should return false.
Parameters:
name - to be compared with
Throws:
GSSException - with major codes of BAD_NAMETYPE, BAD_NAME, FAILURE

export

  1. byte[] export()
  2. throws GSSException
Returns a flat name representation for this object. The name format is defined in RFC 2078.
Returns:
the flat name representation for this object
Throws:
GSSException - with major codes NAME_NOT_MN, BAD_NAME, BAD_NAME, FAILURE.

getMechanism

  1. Oid getMechanism()
Get the mechanism type that this NameElement corresponds to.
Returns:
the Oid of the mechanism type

toString

  1. java.lang.String toString()
Returns a string representation for this name. The printed name type can be obtained by calling getStringNameType().
Overrides:
toString in class java.lang.Object
Returns:
string form of this name
See Also:

getStringNameType

  1. Oid getStringNameType()
Returns the oid describing the format of the printable name.
Returns:
the Oid for the format of the printed name

isAnonymousName

  1. boolean isAnonymousName()
Indicates if this name object represents an Anonymous name.