public class

GSSNameElement

extends Object
implements GSSNameSpi
java.lang.Object
   ↳ sun.security.mule.jgss.wrapper.GSSNameElement

Class Overview

This class is essentially a wrapper class for the gss_name_t structure of the native GSS library.

Summary

Fields
static final GSSNameElement DEF_ACCEPTOR
private GSSLibStub cStub
long pName
private String printableName
private Oid printableType
Public Methods
void dispose()
boolean equals(Object other)
boolean equals(GSSNameSpi other)
Equals method for the GSSNameSpi objects.
byte[] export()
Returns a flat name representation for this object.
String getKrbName()
Oid getMechanism()
Get the mechanism type that this NameElement corresponds to.
Provider getProvider()
Oid getStringNameType()
Returns the oid describing the format of the printable name.
int hashCode()
boolean isAnonymousName()
Indicates if this name object represents an Anonymous name.
String toString()
Protected Methods
void finalize()
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.security.mule.jgss.spi.GSSNameSpi

Fields

static final GSSNameElement DEF_ACCEPTOR

private GSSLibStub cStub

long pName

private String printableName

private Oid printableType

Public Methods

public void dispose ()

public boolean equals (Object other)

Parameters
other

public boolean equals (GSSNameSpi other)

Equals method for the GSSNameSpi objects. If either name denotes an anonymous principal, the call should return false.

Parameters
other To be compared with
Throws
GSSException

public 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

public String getKrbName ()

Throws
GSSException

public Oid getMechanism ()

Get the mechanism type that this NameElement corresponds to.

Returns
  • the Oid of the mechanism type

public Provider getProvider ()

public Oid getStringNameType ()

Returns the oid describing the format of the printable name.

Returns
  • the Oid for the format of the printed name

public int hashCode ()

public boolean isAnonymousName ()

Indicates if this name object represents an Anonymous name.

public String toString ()

Protected Methods

protected void finalize ()

Throws
Throwable