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 SummaryConstructors Constructor Description NTNumericCredential(long token)Create anNTNumericCredentialwith an integer value.
- 
Method SummaryModifier and Type Method Description booleanequals(Object o)Compares the specified Object with thisNTNumericCredentialfor equality.longgetToken()Return an integer representation of thisNTNumericCredential.inthashCode()Return a hash code for thisNTNumericCredential.StringtoString()Return a string representation of thisNTNumericCredential.
- 
Constructor Details- 
NTNumericCredentialpublic NTNumericCredential(long token)Create anNTNumericCredentialwith an integer value.- Parameters:
- token- the Windows NT security token for this user.
 
 
- 
- 
Method Details- 
getTokenpublic long getToken()Return an integer representation of thisNTNumericCredential.- Returns:
- an integer representation of this
          NTNumericCredential.
 
- 
toStringReturn a string representation of thisNTNumericCredential.
- 
equalsCompares the specified Object with thisNTNumericCredentialfor equality. Returns true if the given object is also aNTNumericCredentialand the two NTNumericCredentials represent the same NT security token.- Overrides:
- equalsin class- Object
- Parameters:
- o- Object to be compared for equality with this- NTNumericCredential.
- Returns:
- true if the specified Object is equal to this
          NTNumericCredential.
- See Also:
- Object.hashCode(),- HashMap
 
- 
hashCodepublic int hashCode()Return a hash code for thisNTNumericCredential.- Overrides:
- hashCodein class- Object
- Returns:
- a hash code for this NTNumericCredential.
- See Also:
- Object.equals(java.lang.Object),- System.identityHashCode(java.lang.Object)
 
 
-