|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.4.2
org.ietf.jgss
|
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 name that is canonicalized for some mechanism. |
boolean |
equals(GSSName another)
Compares two GSSName objects to determine if they refer to the
same entity. |
boolean |
equals(Object another)
Compares this GSSName object to another Object that might be a
GSSName . |
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 name type of the printable representation of this name that can be obtained from 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 represents a Mechanism Name (MN). |
String |
toString()
Returns a textual representation of the GSSName object. |
Field Detail |
public static final Oid NT_HOSTBASED_SERVICE
It represents the following Oid 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
It represents the following Oid value:
{ iso(1) member-body(2) United
States(840) mit(113554) infosys(1) gssapi(2) generic(1) user_name(1)
}
public static final Oid NT_MACHINE_UID_NAME
It represents the following Oid value:
{ iso(1) member-body(2) United States(840) mit(113554)
infosys(1) gssapi(2) generic(1) machine_uid_name(2) }
public static final Oid NT_STRING_UID_NAME
It represents the following Oid value:
{ iso(1) member-body(2) United
States(840) mit(113554) infosys(1) gssapi(2) generic(1)
string_uid_name(3) }
public static final Oid NT_ANONYMOUS
It represents the following Oid value:
{ 1(iso), 3(org), 6(dod), 1(internet),
5(security), 6(nametypes), 3(gss-anonymous-name) }
public static final Oid NT_EXPORT_NAME
It represents the following Oid value:
{ 1(iso),
3(org), 6(dod), 1(internet), 5(security), 6(nametypes),
4(gss-api-exported-name) }
Method Detail |
public boolean equals(GSSName another) throws GSSException
GSSName
objects to determine if they refer to the
same entity.
another
- the GSSName
to compare this name with
GSSException
- when the names cannot be compared, containing the following
major error codes:
GSSException.BAD_NAMETYPE
,
GSSException.FAILURE
public boolean equals(Object another)
GSSName
object to another Object that might be a
GSSName
. 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.
another
- the object to compare this name to
GSSName
and the two
names refer to the same entity.equals(GSSName)
public int hashCode()
Object.equals(java.lang.Object)
,
Hashtable
public GSSName canonicalize(Oid mech) throws GSSException
mech
- the oid for the mechanism for which the canonical form of
the name is requested.
GSSName
that contains just one primitive
element representing this name in a canonicalized form for the desired
mechanism.
GSSException
- containing the following
major error codes:
GSSException.BAD_MECH
,
GSSException.BAD_NAMETYPE
,
GSSException.BAD_NAME
,
GSSException.FAILURE
public byte[] export() throws GSSException
The exported name is useful when used in large access control lists
where the overhead of creating a GSSName
object on each
name and invoking the equals method on each name from the ACL may be
prohibitive.
Exported names may be re-imported by using the byte array factory
method GSSManager.createName
and specifying the NT_EXPORT_NAME as the name
type object identifier. The resulting GSSName
name will
also be a MN.
GSSException
- containing the following
major error codes:
GSSException.BAD_NAME
,
GSSException.BAD_NAMETYPE
,
GSSException.FAILURE
public String toString()
GSSName
object. To retrieve
the printed name format, which determines the syntax of the returned
string, use the getStringNameType
method.
public Oid getStringNameType() throws GSSException
toString
method.
GSSException
- containing the following
major error codes:
GSSException.FAILURE
public boolean isAnonymous()
public boolean isMN()