UnixPrincipal.
This class is entirely deprecated.@Exported(value=false) @Deprecated public class SolarisPrincipal extends Object implements Principal, Serializable
This class implements the 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 and Description |
|---|
SolarisPrincipal(String name)
Deprecated.
Create a SolarisPrincipal with a Solaris username.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Deprecated.
Compares the specified Object with this
SolarisPrincipal
for equality. |
String |
getName()
Deprecated.
Return the Unix username for this
SolarisPrincipal. |
int |
hashCode()
Deprecated.
Return a hash code for this
SolarisPrincipal. |
String |
toString()
Deprecated.
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)
Copyright © 1998, 2016, Oracle and/or its affiliates. All rights reserved.