org.springframework.extensions.webscripts.connector
Class UserContext

java.lang.Object
  extended by org.springframework.extensions.webscripts.connector.UserContext

public final class UserContext
extends Object

Describes bound-context for a given user.

Bound context includes Credentials and Connector session information.

Credentials may or may not be bound to a CredentialVault. ConnectorSessions may or may not be bound to an Http Session.

This class is immutable.

Author:
muzquiano, kevinr

Constructor Summary
UserContext(String userId, Credentials credentials, ConnectorSession connectorSession)
           
 
Method Summary
 ConnectorSession getConnectorSession()
           
 Credentials getCredentials()
           
 String getUserId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserContext

public UserContext(String userId,
                   Credentials credentials,
                   ConnectorSession connectorSession)
Method Detail

getUserId

public String getUserId()

getCredentials

public Credentials getCredentials()

getConnectorSession

public ConnectorSession getConnectorSession()


Copyright © 2009 SpringSource, Inc. All Rights Reserved.