Principal interface
and represents information about a Windows NT user, group or realm.
Windows NT chooses to represent users, groups and realms (or domains) with not only common names, but also relatively unique numbers. These numbers are called Security IDentifiers, or SIDs. Windows NT also provides services that render these SIDs into string forms. This class represents these string forms.
Principals such as this NTSid
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 | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the specified Object is equal to thisNTSid.Object to be compared for equality with this
o)NTSid.Overrides java. Implements java. Compares the specified Object with this |
| public String | Returns: a string version of thisNTSidImplements java. Return a string version of this |
| public int | Returns: a hash code for thisNTSid.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 thisNTSid.Overrides java. Implements java. Return a string representation of this |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| sid | back to summary |
|---|---|
| private String sid | |
| NTSid | back to summary |
|---|---|
| public NTSid(String stringSid) 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 a string version of 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
| |