@Exported public class NTNumericCredential extends Object
This class abstracts an NT security token and provides a mechanism to do same-process security impersonation.
| Constructor and Description | 
|---|
| NTNumericCredential(long token)Create an  NTNumericCredentialwith an integer value. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o)Compares the specified Object with this  NTNumericCredentialfor equality. | 
| long | getToken()Return an integer representation of this
  NTNumericCredential. | 
| int | hashCode()Return a hash code for this  NTNumericCredential. | 
| String | toString()Return a string representation of this  NTNumericCredential. | 
public NTNumericCredential(long token)
NTNumericCredential with an integer value.
 token - the Windows NT security token for this user. public long getToken()
NTNumericCredential.
 NTNumericCredential.public String toString()
NTNumericCredential.
 public boolean equals(Object o)
NTNumericCredential
 for equality.  Returns true if the given object is also a
 NTNumericCredential and the two NTNumericCredentials
 represent the same NT security token.
 equals in class Objecto - Object to be compared for equality with this
          NTNumericCredential.NTNumericCredential.Object.hashCode(), 
HashMappublic int hashCode()
NTNumericCredential.
 hashCode in class ObjectNTNumericCredential.Object.equals(java.lang.Object), 
System.identityHashCode(java.lang.Object)
 Copyright © 1998, 2025, Oracle and/or its affiliates.  All rights reserved.