站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.5.0, Java 2 SDK 英文文档

SolarisPrincipal (Java Authentication and Authorization Service ) - JDK 5 Documentation v1.5.0, Java 2 SDK 英文文档

JAAS

com.sun.security.auth
Class SolarisPrincipal

java.lang.Object
  extended by com.sun.security.auth.SolarisPrincipal
All Implemented Interfaces:
Serializable, Principal

Deprecated. As of JDK 1.4, replaced by UnixPrincipal. This class is entirely deprecated.

@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.

See Also:
Principal, Subject, Serialized Form

Constructor Summary
SolarisPrincipal(String name)
          Deprecated. Create a SolarisPrincipal with a Solaris username.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SolarisPrincipal

public SolarisPrincipal(String name)
Deprecated. 
Create a SolarisPrincipal with a Solaris username.

Parameters:
name - the Unix username for this user.
Throws:
NullPointerException - if the name is null.
Method Detail

getName

public String getName()
Deprecated. 
Return the Unix username for this SolarisPrincipal.

Specified by:
getName in interface Principal
Returns:
the Unix username for this SolarisPrincipal

toString

public String toString()
Deprecated. 
Return a string representation of this SolarisPrincipal.

Specified by:
toString in interface Principal
Overrides:
toString in class Object
Returns:
a string representation of this SolarisPrincipal.

equals

public boolean equals(Object o)
Deprecated. 
Compares the specified Object with this SolarisPrincipal for equality. Returns true if the given object is also a SolarisPrincipal and the two SolarisPrincipals have the same username.

Specified by:
equals in interface Principal
Overrides:
equals in class Object
Parameters:
o - Object to be compared for equality with this SolarisPrincipal.
Returns:
true if the specified Object is equal equal to this SolarisPrincipal.

hashCode

public int hashCode()
Deprecated. 
Return a hash code for this SolarisPrincipal.

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object
Returns:
a hash code for this SolarisPrincipal.

JAAS