com.sun.security.auth
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
NTNumericCredential with an integer value. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares the specified Object with this
NTNumericCredential
for 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.
Copyright © 1998, 2013, Oracle and/or its affiliates. All rights reserved.