com.ibm.security.auth
Class NTDomainPrincipal
- java.lang.Object
-
- com.ibm.security.auth.NTDomainPrincipal
-
- All Implemented Interfaces:
- java.io.Serializable, java.security.Principal
Deprecated.replaced byDomainPrincipal
.
@Deprecated public class NTDomainPrincipal extends java.lang.Object implements java.security.Principal, java.io.Serializable
This class implements the
Principal
interface and represents the name of the Windows NT domain into which the user authenticated. This will be a domain name if the user logged into a Windows NT domain, a workgroup name if the user logged into a workgroup, or a machine name if the user logged into a standalone configuration.Principals such as this
NTDomainPrincipal
may be associated with a particularSubject
to augment thatSubject
with an additional identity. Refer to theSubject
class for more information on how to achieve this. Authorization decisions can then be based upon the Principals associated with aSubject
.- See Also:
Principal
,Subject
,DomainPrincipal
, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description NTDomainPrincipal(java.lang.String name)
Deprecated.Create anNTDomainPrincipal
with a Windows NT domain name.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description boolean
equals(java.lang.Object o)
Deprecated.Compares the specified Object with thisNTDomainPrincipal
for equality.java.lang.String
getName()
Deprecated.Return the Windows NT domain name for thisNTDomainPrincipal
.int
hashCode()
Deprecated.Return a hash code for thisNTDomainPrincipal
.java.lang.String
toString()
Deprecated.Return a string representation of thisNTDomainPrincipal
.
-
-
-
Constructor Detail
-
NTDomainPrincipal
public NTDomainPrincipal(java.lang.String name)
Deprecated.Create anNTDomainPrincipal
with a Windows NT domain name.- Parameters:
name
- the Windows NT domain name for this user.- Throws:
java.lang.NullPointerException
- if thename
isnull
.
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.Return the Windows NT domain name for thisNTDomainPrincipal
.- Specified by:
getName
in interfacejava.security.Principal
- Returns:
- the Windows NT domain name for this
NTDomainPrincipal
-
toString
public java.lang.String toString()
Deprecated.Return a string representation of thisNTDomainPrincipal
.- Specified by:
toString
in interfacejava.security.Principal
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation of this
NTDomainPrincipal
.
-
equals
public boolean equals(java.lang.Object o)
Deprecated.Compares the specified Object with thisNTDomainPrincipal
for equality. Returns true if the given object is also aNTDomainPrincipal
and the two NTDomainPrincipals have the same name.- Specified by:
equals
in interfacejava.security.Principal
- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- Object to be compared for equality with thisNTDomainPrincipal
.- Returns:
- true if the specified Object is equal equal to this
NTDomainPrincipal
.
-
hashCode
public int hashCode()
Deprecated.Return a hash code for thisNTDomainPrincipal
.- Specified by:
hashCode
in interfacejava.security.Principal
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- a hash code for this
NTDomainPrincipal
.
-
-