- 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 thePrincipalinterface and represents a Solaris user.Principals such as this
SolarisPrincipalmay be associated with a particularSubjectto augment thatSubjectwith an additional identity. Refer to theSubjectclass 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 booleanequals(Object o)Deprecated, for removal: This API element is subject to removal in a future version.Compares the specified Object with thisSolarisPrincipalfor equality.StringgetName()Deprecated, for removal: This API element is subject to removal in a future version.Return the Unix username for thisSolarisPrincipal.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Return a hash code for thisSolarisPrincipal.StringtoString()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 thenameisnull.
-
-
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 thisSolarisPrincipalfor equality. Returns true if the given object is also aSolarisPrincipaland 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:
hashCodein interfacePrincipal- Overrides:
hashCodein classObject- Returns:
- a hash code for this
SolarisPrincipal. - See Also:
Object.equals(java.lang.Object),System.identityHashCode(java.lang.Object)
-
-