NTSid
and represents a Windows NT user's domain SID.
An NT user only has a domain SID if in fact they are logged into an NT domain. If the user is logged into a workgroup or just a standalone configuration, they will NOT have a domain SID.
Principals such as this NTSidDomainPrincipal
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 static final long |
| Access | Constructor and Description |
|---|---|
| public | NTSidDomainPrincipal(String
a string version of the Windows NT SID for this
user's domain. name)Create an |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the specified Object is equal to thisNTSidDomainPrincipal.Object to be compared for equality with this
o)NTSidDomainPrincipal.Overrides com. Implements java. Compares the specified Object with this |
| public String | Returns: a string representation of thisNTSidDomainPrincipal.Overrides com. Implements java. Return a string representation of this |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NTSidDomainPrincipal | back to summary |
|---|---|
| public NTSidDomainPrincipal(String name) Create an
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides com. Implements java. Compares the specified Object with this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Implements java. Return a string representation of this
| |