Serializable, PrincipalUnixPrincipal.
This class is entirely deprecated.
This class is subject to removal in a future version of Java SE.@Deprecated(since="1.4", forRemoval=true) public class SolarisPrincipal extends Object implements Principal, Serializable
Principal interface
and represents a Solaris user.
Principals such as this SolarisPrincipal
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.
Principal,
Subject,
Serialized Form| Constructor | Description |
|---|---|
SolarisPrincipal(String name) |
Deprecated, for removal: This API element is subject to removal in a future version.
Create a SolarisPrincipal with a Solaris username.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object o) |
Deprecated, for removal: This API element is subject to removal in a future version.
Compares the specified Object with this
SolarisPrincipal
for equality. |
String |
getName() |
Deprecated, for removal: This API element is subject to removal in a future version.
Return the Unix username for this
SolarisPrincipal. |
int |
hashCode() |
Deprecated, for removal: This API element is subject to removal in a future version.
Return a hash code for this
SolarisPrincipal. |
String |
toString() |
Deprecated, for removal: This API element is subject to removal in a future version.
Return a string representation of this
SolarisPrincipal. |
public SolarisPrincipal(String name)
name - the Unix username for this user.NullPointerException - if the name
is null.public String getName()
SolarisPrincipal.public String toString()
SolarisPrincipal.public boolean equals(Object o)
SolarisPrincipal
for equality. Returns true if the given object is also a
SolarisPrincipal and the two SolarisPrincipals
have the same username.public int hashCode()
SolarisPrincipal.hashCode in interface PrincipalhashCode in class ObjectSolarisPrincipal.Object.equals(java.lang.Object),
System.identityHashCode(java.lang.Object) Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1998, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2