com.ibm.security.auth

Class NumericCredential

  1. java.lang.Object
  2. extended bycom.ibm.security.auth.NumericCredential

  1. public class NumericCredential
  2. extends java.lang.Object

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


Constructor Summary

Constructor and Description
NumericCredential(long token,Win64ActiveSystem activeSystem)
Create an NumericCredential with a long value.
NumericCredential(long token,Win64System system)
Create an NumericCredential with a long value.

Method Summary

Modifier and Type Method and Description
  1. boolean
equals(java.lang.Object o)
Compares the specified Object with this NumericCredential for equality.
  1. long
getToken()
Return a long representation of this NumericCredential.
  1. int
hashCode()
Return a hash code for this NumericCredential.
  1. java.lang.String
toString()
Return a string representation of this NumericCredential.
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

NumericCredential

  1. public NumericCredential(long token,
  2. Win64ActiveSystem activeSystem)
Create an NumericCredential with a long value.

Parameters:
token - the Windows NT security token for this user.

activeSystem - the Win64ActiveSystem reference


NumericCredential

  1. public NumericCredential(long token,
  2. Win64System system)
Create an NumericCredential with a long value.

Parameters:
token - the Windows NT security token for this user.

system - the Win64System reference

Method Detail

getToken

  1. public long getToken()
Return a long representation of this NumericCredential.

Returns:
a long representation of this NumericCredential.

toString

  1. public java.lang.String toString( )
Return a string representation of this NumericCredential.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this NumericCredential.

equals

  1. public boolean equals(java.lang.Object o)
Compares the specified Object with this NumericCredential for equality. Returns true if the given object is also a NumericCredential and the two NumericCredentials represent the same NT security token.

Overrides:
equals in class java.lang.Object
Parameters:
o - Object to be compared for equality with this NumericCredential.
Returns:
true if the specified Object is equal equal to this NumericCredential.

hashCode

  1. public int hashCode()
Return a hash code for this NumericCredential.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code for this NumericCredential.