***  This API provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.security.login
Class PFSPrincipal

java.lang.Object
  |
  +--com.sas.services.security.login.PFSPrincipal
All Implemented Interfaces:
PFSPrincipalInterface,
Direct Known Subclasses:
ServerPrincipal,

public class PFSPrincipal
extends Object
implements PFSPrincipalInterface, java.io.Serializable

This class represents a principal identity that was authenticated with the SAS Platform Services.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
PFSPrincipal(String name)
          Construct a new PFSPrincipal with the given name
 
Method Summary
 boolean equals(Object o)
          Test another object for equality with this one.
 String getName()
          Get the name of this principal.
 int hashCode()
          Use the hashCode of the name
 boolean implies(Subject subject)
           
 boolean isProcessed()
          This is a flag used by UserContext to determine if this principal has been processed by the authenticate method.
 void setProcessed()
          Set the flag on this principal indicating that the UserContext has already processed it.
 String toString()
          Return a printable string representing this principal.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PFSPrincipal

public PFSPrincipal(String name)
Construct a new PFSPrincipal with the given name
Method Detail

getName

public String getName()
Get the name of this principal.
Specified by:
getName in interface Principal

isProcessed

public boolean isProcessed()
This is a flag used by UserContext to determine if this principal has been processed by the authenticate method.
Specified by:
isProcessed in interface PFSPrincipalInterface

setProcessed

public void setProcessed()
Set the flag on this principal indicating that the UserContext has already processed it.
Specified by:
setProcessed in interface PFSPrincipalInterface

toString

public String toString()
Return a printable string representing this principal.
Specified by:
toString in interface Principal
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Test another object for equality with this one. An object is considered equal if it is a PFSPrincipal and the name equals the name of this one.

Specified by:
equals in interface Principal
Overrides:
equals in class Object
Returns:
true if the other object is equal, false otherwise.

hashCode

public int hashCode()
Use the hashCode of the name
Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

implies

public boolean implies(Subject subject)

***  This API provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:29:02