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
ConstructorsConstructorDescriptionNTNumericCredential(long token) Create anNTNumericCredentialwith an integer value. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the specified Object with thisNTNumericCredentialfor equality.longgetToken()Return an integer representation of thisNTNumericCredential.inthashCode()Return a hash code for thisNTNumericCredential.toString()Return a string representation of thisNTNumericCredential.
-
Constructor Details
-
NTNumericCredential
public NTNumericCredential(long token) Create anNTNumericCredentialwith 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 thisNTNumericCredentialfor equality. Returns true if the given object is also aNTNumericCredentialand the two NTNumericCredentials represent the same NT security token. -
hashCode
public int hashCode()Return a hash code for thisNTNumericCredential.
-