public interface

GSSNameSpi

sun.security.jgss.spi.GSSNameSpi
Known Indirect Subclasses

Class Overview

This interface is implemented by a mechanism specific name element. A GSSName is conceptually a container class of several name elements from different mechanisms.

Summary

Public Methods
abstract boolean equals(GSSNameSpi name)
Equals method for the GSSNameSpi objects.
abstract boolean equals(Object another)
Compares this GSSNameSpi object to another Object that might be a GSSNameSpi.
abstract byte[] export()
Returns a flat name representation for this object.
abstract Oid getMechanism()
Get the mechanism type that this NameElement corresponds to.
abstract Provider getProvider()
abstract Oid getStringNameType()
Returns the oid describing the format of the printable name.
abstract int hashCode()
Returns a hashcode value for this GSSNameSpi.
abstract boolean isAnonymousName()
Indicates if this name object represents an Anonymous name.
abstract String toString()
Returns a string representation for this name.

Public Methods

public abstract boolean equals (GSSNameSpi name)

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

public abstract boolean equals (Object another)

Compares this GSSNameSpi object to another Object that might be a GSSNameSpi. The behaviour is exactly the same as in equals except that no GSSException is thrown; instead, false will be returned in the situation where an error occurs.

Parameters
another the object to be compared to
Returns
  • true if this object is the same as the obj argument; false otherwise.

public abstract byte[] export ()

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.

public abstract Oid getMechanism ()

Get the mechanism type that this NameElement corresponds to.

Returns
  • the Oid of the mechanism type

public abstract Provider getProvider ()

public abstract Oid getStringNameType ()

Returns the oid describing the format of the printable name.

Returns
  • the Oid for the format of the printed name

public abstract int hashCode ()

Returns a hashcode value for this GSSNameSpi.

Returns
  • a hashCode value

public abstract boolean isAnonymousName ()

Indicates if this name object represents an Anonymous name.

public abstract String toString ()

Returns a string representation for this name. The printed name type can be obtained by calling getStringNameType().

Returns
  • string form of this name