Methods Summary |
---|
public boolean | equals(java.lang.Object o)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.
if (o == null)
return false;
if (this == o)
return true;
if (!(o instanceof NTNumericCredential))
return false;
NTNumericCredential that = (NTNumericCredential)o;
if (impersonationToken == that.getToken())
return true;
return false;
|
public long | getToken()Return an integer representation of this
NTNumericCredential .
return impersonationToken;
|
public int | hashCode()Return a hash code for this NTNumericCredential .
return (int)this.impersonationToken;
|
public java.lang.String | toString()Return a string representation of this NTNumericCredential .
java.text.MessageFormat form = new java.text.MessageFormat
(sun.security.util.ResourcesMgr.getString
("NTNumericCredential: name",
"sun.security.util.AuthResources"));
Object[] source = {Long.toString(impersonationToken)};
return form.format(source);
|