APIdia Launch Partner
Top Description Methods
sun.security.jgss.spi

public Interface GSSNameSpi

Known Direct Implementers
sun.security.jgss.wrapper.GSSNameElement, sun.security.jgss.krb5.Krb5NameElement
Imports
org.ietf.jgss.*, java.security.Provider

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

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if they both refer to the same entity, else false
equals
(GSSNameSpi
to be compared with
name
)

Equals method for the GSSNameSpi objects.

public boolean

Returns:

true if they both refer to the same entity, else false
equals
(Object
the object to be compared to
another
)

Compares this GSSNameSpi object to another Object that might be a GSSNameSpi.

public byte[]

Returns:

the flat name representation for this object
export
()

Returns a flat name representation for this object.

public Oid

Returns:

the Oid of the mechanism type
getMechanism
()

Get the mechanism type that this NameElement corresponds to.

public Provider
public Oid

Returns:

the Oid for the format of the printed name
getStringNameType
()

Returns the oid describing the format of the printable name.

public int

Returns:

a hashcode value for this GSSNameSpi
hashCode
()

Returns a hashcode value for this GSSNameSpi.

public boolean
isAnonymousName()

Indicates if this name object represents an Anonymous name.

public String

Returns:

string form of this name
toString
()

Returns a string representation for this name.

Method Detail

equalsback to summary
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.

Parameters
name:GSSNameSpi

to be compared with

Returns:boolean

true if they both refer to the same entity, else false

Exceptions
GSSException:
with major codes of BAD_NAMETYPE, BAD_NAME, FAILURE
equalsback to summary
public 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:Object

the object to be compared to

Returns:boolean

true if they both refer to the same entity, else false

Annotations
@Override
See Also
equals(GSSNameSpi)
exportback to summary
public byte[] export() throws GSSException

Returns a flat name representation for this object. The name format is defined in RFC 2078.

Returns:byte[]

the flat name representation for this object

Exceptions
GSSException:
with major codes NAME_NOT_MN, BAD_NAME, BAD_NAME, FAILURE.
getMechanismback to summary
public Oid getMechanism()

Get the mechanism type that this NameElement corresponds to.

Returns:Oid

the Oid of the mechanism type

getProviderback to summary
public Provider getProvider()
getStringNameTypeback to summary
public Oid getStringNameType()

Returns the oid describing the format of the printable name.

Returns:Oid

the Oid for the format of the printed name

hashCodeback to summary
public int hashCode()

Returns a hashcode value for this GSSNameSpi.

Returns:int

a hashcode value for this GSSNameSpi

Annotations
@Override
isAnonymousNameback to summary
public boolean isAnonymousName()

Indicates if this name object represents an Anonymous name.

toStringback to summary
public String toString()

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

Returns:String

string form of this name

See Also
getStringNameType()