APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.security.auth

public Class NTNumericCredential

extends Object
Class Inheritance

This class abstracts an NT security token and provides a mechanism to do same-process security impersonation.
Since
1.4

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

AccessConstructor and Description
public
NTNumericCredential(long
the Windows NT security token for this user.
token
)

Create an NTNumericCredential with an integer value.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the specified Object is equal to this NTNumericCredential.
equals
(Object
Object to be compared for equality with this NTNumericCredential.
o
)

Overrides java.lang.Object.equals.

Compares the specified Object with this NTNumericCredential for equality.

public long

Returns:

an integer representation of this NTNumericCredential.
getToken
()

Return an integer representation of this NTNumericCredential.

public int

Returns:

a hash code for this NTNumericCredential.
hashCode
()

Overrides java.lang.Object.hashCode.

Return a hash code for this NTNumericCredential.

public String

Returns:

a string representation of this NTNumericCredential.
toString
()

Overrides java.lang.Object.toString.

Return a string representation of this NTNumericCredential.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

impersonationTokenback to summary
private long impersonationToken

Constructor Detail

NTNumericCredentialback to summary
public NTNumericCredential(long token)

Create an NTNumericCredential with an integer value.

Parameters
token:long

the Windows NT security token for this user.

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Compares the specified Object with this NTNumericCredential for equality. Returns true if the given object is also a NTNumericCredential and the two NTNumericCredentials represent the same NT security token.

Parameters
o:Object

Object to be compared for equality with this NTNumericCredential.

Returns:boolean

true if the specified Object is equal to this NTNumericCredential.

getTokenback to summary
public long getToken()

Return an integer representation of this NTNumericCredential.

Returns:long

an integer representation of this NTNumericCredential.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Return a hash code for this NTNumericCredential.

Returns:int

a hash code for this NTNumericCredential.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return a string representation of this NTNumericCredential.

Returns:String

a string representation of this NTNumericCredential.