public class NTNumericCredential extends Object
这个类抽象了一个NT安全令牌,并提供了一个在同一进程中进行安全模拟的机制。
-
Constructor Summary
Constructors
创建一个带有整数值的NTNumericCredential。
-
Method Summary
boolean
将指定的对象与此NTNumericCredential进行比较以检查是否相等。
long
返回此NTNumericCredential的整数表示。
int
返回此NTNumericCredential的哈希码。
返回此NTNumericCredential的字符串表示。
-
Constructor Details
-
NTNumericCredential
public NTNumericCredential(long token)
创建一个带有整数值的NTNumericCredential。
-
参数:
-
token - 此用户的Windows NT安全令牌。
-
Method Details
-
getToken
public long getToken()
返回此NTNumericCredential的整数表示。
-
返回:
-
此
NTNumericCredential的整数表示。
-
toString
返回此NTNumericCredential的字符串表示。
-
覆盖:
-
toString 在类 Object中
-
返回:
-
此
NTNumericCredential的字符串表示。
-
equals
public boolean equals(Object o)
将指定的对象与此NTNumericCredential进行比较以检查是否相等。如果给定的对象也是一个NTNumericCredential,并且两个NTNumericCredentials表示相同的NT安全令牌,则返回true。
-
覆盖:
-
equals 在类 Object中
-
参数:
-
o - 用于与此NTNumericCredential比较是否相等的对象。
-
返回:
-
如果指定的对象等于此
NTNumericCredential,则返回true。
-
另请参阅:
-
-
hashCode
public int hashCode()
返回此NTNumericCredential的哈希码。
-
覆盖:
-
hashCode 在类 Object中
-
返回:
-
此
NTNumericCredential的哈希码。
-
另请参阅:
-