- java.lang.Object
-
- com.sun.security.auth.SolarisPrincipal
-
- All Implemented Interfaces:
Serializable
,Principal
Deprecated, for removal: This API element is subject to removal in a future version.As of JDK 1.4, replaced byUnixPrincipal
. 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
This class implements thePrincipal
interface and represents a Solaris user.Principals such as this
SolarisPrincipal
may be associated with a particularSubject
to augment thatSubject
with an additional identity. Refer to theSubject
class for more information on how to achieve this. Authorization decisions can then be based upon the Principals associated with aSubject
.- See Also:
Principal
,Subject
, Serialized Form
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods 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 thisSolarisPrincipal
for equality.String
getName()
Deprecated, for removal: This API element is subject to removal in a future version.Return the Unix username for thisSolarisPrincipal
.int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.Return a hash code for thisSolarisPrincipal
.String
toString()
Deprecated, for removal: This API element is subject to removal in a future version.Return a string representation of thisSolarisPrincipal
.
-
-
-
Constructor Detail
-
SolarisPrincipal
public SolarisPrincipal(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Create a SolarisPrincipal with a Solaris username.- Parameters:
name
- the Unix username for this user.- Throws:
NullPointerException
- if thename
isnull
.
-
-
Method Detail
-
getName
public String getName()
Deprecated, for removal: This API element is subject to removal in a future version.Return the Unix username for thisSolarisPrincipal
.
-
toString
public String toString()
Deprecated, for removal: This API element is subject to removal in a future version.Return a string representation of thisSolarisPrincipal
.
-
equals
public boolean equals(Object o)
Deprecated, for removal: This API element is subject to removal in a future version.Compares the specified Object with thisSolarisPrincipal
for equality. Returns true if the given object is also aSolarisPrincipal
and the two SolarisPrincipals have the same username.
-
hashCode
public int hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.Return a hash code for thisSolarisPrincipal
.- Specified by:
hashCode
in interfacePrincipal
- Overrides:
hashCode
in classObject
- Returns:
- a hash code for this
SolarisPrincipal
. - See Also:
Object.equals(java.lang.Object)
,System.identityHashCode(java.lang.Object)
-
-