org.yawlfoundation.yawl.authentication
Class YExternalSession

java.lang.Object
  extended by org.yawlfoundation.yawl.authentication.YSession
      extended by org.yawlfoundation.yawl.authentication.YExternalSession

public class YExternalSession
extends YSession

Maintains an active session belonging to an external application client.

Since:
2.1
Author:
Michael Adams
Created/Last Date:
24/11/2009

Constructor Summary
YExternalSession(YExternalClient client, long timeOutSeconds)
           
 
Method Summary
 YExternalClient getClient()
           
 String getName()
           
 String getPassword()
          Gets the client's password.
 String getURI()
          Implementation of super abstract method that has no meaning for external clients.
 void setClient(YExternalClient client)
           
 void setPassword(String password)
          Updates (and persists) the password for an external client.
 
Methods inherited from class org.yawlfoundation.yawl.authentication.YSession
cancelActivityTimer, getHandle, refresh, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YExternalSession

public YExternalSession(YExternalClient client,
                        long timeOutSeconds)
Method Detail

getURI

public String getURI()
Implementation of super abstract method that has no meaning for external clients.

Overrides:
getURI in class YSession
Returns:
null (always)

getName

public String getName()

getPassword

public String getPassword()
Gets the client's password.

Overrides:
getPassword in class YSession
Returns:
the (hashed) password of the client associated with this session.

setPassword

public void setPassword(String password)
                 throws YPersistenceException
Updates (and persists) the password for an external client.

Overrides:
setPassword in class YSession
Parameters:
password - the (hashed) password to set for the external client.
Throws:
YPersistenceException - if there's some problem persisting the change.

setClient

public void setClient(YExternalClient client)

getClient

public YExternalClient getClient()
Overrides:
getClient in class YSession


Copyright © 2004-2012 The YAWL Foundation.