|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GSSName
This interface encapsulates a single GSS-API principal entity. Different name formats and their definitions are identified with universal Object Identifiers (Oids). The format of the names can be derived based on the unique oid of its namespace type.
Based on the IETF RFC-2853.
Field Summary | |
---|---|
static Oid |
NT_ANONYMOUS
Name type for representing an anonymous entity. |
static Oid |
NT_EXPORT_NAME
Name type used to indicate an exported name produced by the export method. |
static Oid |
NT_HOSTBASED_SERVICE
Oid indicating a host-based service name form. |
static Oid |
NT_MACHINE_UID_NAME
Name type to indicate a numeric user identifier corresponding to a user on a local system. |
static Oid |
NT_STRING_UID_NAME
Name type to indicate a string of digits representing the numeric user identifier of a user on a local system. |
static Oid |
NT_USER_NAME
Name type to indicate a named user on a local system. |
Method Summary | |
---|---|
GSSName |
canonicalize(Oid mech)
Creates a mechanism name (MN) from an arbitrary internal name. |
boolean |
equals(GSSName otherName)
Compares two GSSName objects to determine whether they refer to the same entity. |
boolean |
equals(java.lang.Object otherName)
A variation of the equals method that is provided to override the Object.equals() method that the implementing class will inherit. |
byte[] |
export()
Returns a canonical contiguous byte representation of a mechanism name (MN), suitable for direct, byte by byte comparison by authorization functions. |
Oid |
getStringNameType()
Returns the oid representing the type of name returned through the toString method. |
int |
hashCode()
Returns a hashcode value for this GSSName. |
boolean |
isAnonymous()
Tests if this name object represents an anonymous entity. |
boolean |
isMN()
Tests if this name object contains only one mechanism element and is thus a mechanism name as defined by RFC 2078. |
java.lang.String |
toString()
Returns a textual representation of the GSSName object. |
Field Detail |
---|
static final Oid NT_HOSTBASED_SERVICE
service@hostname
Values for the "service" element are registered with the IANA. It represents the following value: { 1(iso), 3(org), 6(dod), 1(internet), 5(security), 6(nametypes), 2(gss-host-based-services) }.
static final Oid NT_USER_NAME
static final Oid NT_MACHINE_UID_NAME
static final Oid NT_STRING_UID_NAME
static final Oid NT_ANONYMOUS
static final Oid NT_EXPORT_NAME
Method Detail |
---|
boolean equals(GSSName otherName) throws GSSException
otherName
- GSSName object to compare with.
GSSException
boolean equals(java.lang.Object otherName)
equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object
GSSName canonicalize(Oid mech) throws GSSException
mechOid
- The oid for the mechanism for which the canonical form
of the name is requested.
GSSException
byte[] export() throws GSSException
GSSException
java.lang.String toString()
toString
in class java.lang.Object
Oid getStringNameType() throws GSSException
GSSException
boolean isAnonymous()
boolean isMN()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |