| sun.security.jgss.spi.GSSNameSpi
All known Subclasses: sun.security.jgss.krb5.Krb5NameElement, sun.security.jgss.wrapper.GSSNameElement,
GSSNameSpi | public interface GSSNameSpi (Code) | | 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 version: 1.13, 05/05/07 |
Method Summary | |
public boolean | equals(GSSNameSpi name) Equals method for the GSSNameSpi objects. | public boolean | equals(Object another) Compares this GSSNameSpi object to another Object
that might be a GSSNameSpi . | public byte[] | export() Returns a flat name representation for this object. | public Oid | getMechanism() Get the mechanism type that this NameElement corresponds to. | public Provider | getProvider() | public Oid | getStringNameType() Returns the oid describing the format of the printable name. | public int | hashCode() Returns a hashcode value for this GSSNameSpi. | public boolean | isAnonymousName() Indicates if this name object represents an Anonymous name. | public String | toString() Returns a string representation for this name. |
equals | public boolean equals(GSSNameSpi name) throws GSSException(Code) | | Equals method for the GSSNameSpi objects.
If either name denotes an anonymous principal, the call should
return false.
Parameters: name - to be compared with exception: GSSException - with major codes of BAD_NAMETYPE,BAD_NAME, FAILURE |
equals | public boolean equals(Object another)(Code) | | Compares this GSSNameSpi object to another Object
that might be a GSSNameSpi . The behaviour is exactly
the same as in
GSSNameSpi.equals(GSSNameSpi) 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 See Also: GSSNameSpi.equals(GSSNameSpi) |
export | public byte[] export() throws GSSException(Code) | | Returns a flat name representation for this object. The name
format is defined in RFC 2078.
the flat name representation for this object exception: GSSException - with major codes NAME_NOT_MN, BAD_NAME,BAD_NAME, FAILURE. |
getMechanism | public Oid getMechanism()(Code) | | Get the mechanism type that this NameElement corresponds to.
the Oid of the mechanism type |
getStringNameType | public Oid getStringNameType()(Code) | | Returns the oid describing the format of the printable name.
the Oid for the format of the printed name |
hashCode | public int hashCode()(Code) | | Returns a hashcode value for this GSSNameSpi.
a hashCode value |
isAnonymousName | public boolean isAnonymousName()(Code) | | Indicates if this name object represents an Anonymous name.
|
toString | public String toString()(Code) | | Returns a string representation for this name. The printed
name type can be obtained by calling getStringNameType().
string form of this name See Also: GSSNameSpi.getStringNameType() |
|
|