|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 another)
Compares two GSSName objects to determine whether they refer to the same entity. |
boolean |
equals(java.lang.Object another)
A variation of the equals method described above 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. |
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 2743. |
java.lang.String |
toString()
Returns a textual representation of the GSSName object. |
Field Detail |
public 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) }
public static final Oid NT_USER_NAME
public static final Oid NT_MACHINE_UID_NAME
public static final Oid NT_STRING_UID_NAME
public static final Oid NT_ANONYMOUS
public static final Oid NT_EXPORT_NAME
Method Detail |
public boolean equals(GSSName another) throws GSSException
another
- GSSName object to compare with.
GSSException
public boolean equals(java.lang.Object another)
another
- GSSName object to compare with.public GSSName canonicalize(Oid mech) throws GSSException
createName
that take the mechanism name as one of their parameters.
mech
- The oid for the mechanism for which the canonical form
of the name is requested.
GSSException
public byte[] export() throws GSSException
GSSException
public java.lang.String toString()
public Oid getStringNameType() throws GSSException
GSSException
public boolean isAnonymous()
public boolean isMN()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |