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 particular Subject
to augment that Subject
with an additional
identity. Refer to the Subject
class for more information
on how to achieve this. Authorization decisions can then be based upon
the Principals associated with a Subject
.
java.security.Principal
, javax.security.auth.Subject
Modifier and Type | Field and Description |
---|---|
private String | |
private static final long |
Access | Constructor and Description |
---|---|
public | NTDomainPrincipal(String
the Windows NT domain name for this user. name)Create an |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if the specified Object is equal to thisNTDomainPrincipal .Object to be compared for equality with this
o)NTDomainPrincipal .Overrides java. Implements java. Compares the specified Object with this |
public String | Returns: the Windows NT domain name for thisNTDomainPrincipal Implements java. Return the Windows NT domain name for this
|
public int | Returns: a hash code for thisNTDomainPrincipal .Overrides java. Implements java. Return a hash code for this |
private void | readObject(ObjectInputStream
the stream)ObjectInputStream from which data is readRestores the state of this object from the stream. |
public String | Returns: a string representation of thisNTDomainPrincipal .Overrides java. Implements java. Return a string representation of this |
name | back to summary |
---|---|
private String name |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID
|
NTDomainPrincipal | back to summary |
---|---|
public NTDomainPrincipal(String name) Create an
|
equals | back to summary |
---|---|
public boolean equals(Object o) Overrides java. Implements java. Compares the specified Object with this
|
getName | back to summary |
---|---|
public String getName() Implements java. Return the Windows NT domain name for this
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Implements java. Return a hash code for this
|
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Restores the state of this object from the stream.
|
toString | back to summary |
---|---|
public String toString() Overrides java. Implements java. Return a string representation of this
|