- java.lang.Object
-
- com.sun.security.auth.NTNumericCredential
-
public class NTNumericCredential extends Object
This class abstracts an NT security token and provides a mechanism to do same-process security impersonation.
-
-
Constructor Summary
Constructors Constructor Description NTNumericCredential(long token)
Create anNTNumericCredential
with an integer value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compares the specified Object with thisNTNumericCredential
for equality.long
getToken()
Return an integer representation of thisNTNumericCredential
.int
hashCode()
Return a hash code for thisNTNumericCredential
.String
toString()
Return a string representation of thisNTNumericCredential
.
-
-
-
Method Detail
-
getToken
public long getToken()
Return an integer representation of thisNTNumericCredential
.- Returns:
- an integer representation of this
NTNumericCredential
.
-
toString
public String toString()
Return a string representation of thisNTNumericCredential
.
-
equals
public boolean equals(Object o)
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.- Overrides:
equals
in classObject
- Parameters:
o
- Object to be compared for equality with thisNTNumericCredential
.- Returns:
- true if the specified Object is equal to this
NTNumericCredential
. - See Also:
Object.hashCode()
,HashMap
-
hashCode
public int hashCode()
Return a hash code for thisNTNumericCredential
.- Overrides:
hashCode
in classObject
- Returns:
- a hash code for this
NTNumericCredential
. - See Also:
Object.equals(java.lang.Object)
,System.identityHashCode(java.lang.Object)
-
-