java.lang.Object
com.sun.security.auth.NTNumericCredential
This class abstracts an NT security token
and provides a mechanism to do same-process security impersonation.
-
Constructor Summary
ConstructorDescriptionNTNumericCredential
(long token) Create anNTNumericCredential
with an integer value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares the specified Object with thisNTNumericCredential
for equality.long
getToken()
Return an integer representation of thisNTNumericCredential
.int
hashCode()
Return a hash code for thisNTNumericCredential
.toString()
Return a string representation of thisNTNumericCredential
.
-
Constructor Details
-
NTNumericCredential
public NTNumericCredential(long token) Create anNTNumericCredential
with an integer value.- Parameters:
token
- the Windows NT security token for this user.
-
-
Method Details
-
getToken
public long getToken()Return an integer representation of thisNTNumericCredential
.- Returns:
- an integer representation of this
NTNumericCredential
.
-
toString
Return a string representation of thisNTNumericCredential
. -
equals
Compares the specified Object with thisNTNumericCredential
for equality. Returns true if the given object is also aNTNumericCredential
and the two NTNumericCredentials represent the same NT security token. -
hashCode
public int hashCode()Return a hash code for thisNTNumericCredential
.
-