com.force.sdk.oauth
Class ForceUserPrincipal

java.lang.Object
  extended by com.force.sdk.oauth.ForceUserPrincipal
All Implemented Interfaces:
Serializable, Principal

public class ForceUserPrincipal
extends Object
implements Principal, Serializable

A security principal that represents a Force.com user.

Author:
Fiaz Hossain
See Also:
Serialized Form

Constructor Summary
ForceUserPrincipal(String name, String sessionId)
          Create a ForceUserPrincipal with this name and session id.
 
Method Summary
 String getName()
           
 String getSessionId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

ForceUserPrincipal

public ForceUserPrincipal(String name,
                          String sessionId)
Create a ForceUserPrincipal with this name and session id.

Parameters:
name - String
sessionId - String
Method Detail

getName

public String getName()
Specified by:
getName in interface Principal

getSessionId

public String getSessionId()


Copyright © 2011. All Rights Reserved.