- 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 anNTNumericCredentialwith an integer value. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier 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. 
 - 
 
- 
- 
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 thisNTNumericCredentialfor equality. Returns true if the given object is also aNTNumericCredentialand the two NTNumericCredentials represent the same NT security token.- Overrides:
 equalsin 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:
 hashCodein classObject- Returns:
 - a hash code for this 
NTNumericCredential. - See Also:
 Object.equals(java.lang.Object),System.identityHashCode(java.lang.Object)
 
 - 
 
 -