org.yawlfoundation.yawl.authentication
Class YServiceSession

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

public class YServiceSession
extends YSession

Maintains an active session belonging to a custom service.

Since:
2.1
Author:
Michael Adams

Constructor Summary
YServiceSession(YAWLServiceReference service, long timeOutSeconds)
           
 
Method Summary
 YAWLServiceReference getClient()
           
 String getName()
           
 String getPassword()
          Gets the services's password.
 String getURI()
          Get's the service's URI.
 void setPassword(String password)
          Updates (and persists) the password for the custom service.
 void setService(YAWLServiceReference service)
           
 
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

YServiceSession

public YServiceSession(YAWLServiceReference service,
                       long timeOutSeconds)
Method Detail

getURI

public String getURI()
Get's the service's URI.

Overrides:
getURI in class YSession
Returns:
the URI of the service associated with this session.

getName

public String getName()

getPassword

public String getPassword()
Gets the services'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 the custom service.

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

setService

public void setService(YAWLServiceReference service)

getClient

public YAWLServiceReference getClient()
Overrides:
getClient in class YSession


Copyright © 2004-2012 The YAWL Foundation.