AslSession is now deprecated.

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@129645 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
nikolas.laskaris 2016-06-29 14:28:08 +00:00
parent cb330a1490
commit ded16e3bf3
1 changed files with 15 additions and 6 deletions

View File

@ -28,20 +28,19 @@ import org.w3c.dom.NodeList;
//import org.gridforum.jgss.ExtendedGSSCredential; //import org.gridforum.jgss.ExtendedGSSCredential;
/** /**
* ASLSession is deprecated. Do all handling through HttpSession instead
*
* @author Valia Tsagkalidou (NKUA) * @author Valia Tsagkalidou (NKUA)
*
*/ */
@Deprecated
public class ASLSession{ public class ASLSession{
/**
*
*/
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private HashMap<String, Object> innerSession; private HashMap<String, Object> innerSession;
private long lastUsedTime; private long lastUsedTime;
private String externalSessionID; private String externalSessionID;
private String username; private String username;
// private ExtendedGSSCredential credential;
private String parentScope; private String parentScope;
private String scope; private String scope;
private String securityToken; private String securityToken;
@ -206,9 +205,12 @@ public class ASLSession{
} }
/** /**
* <b>ASLSession is deprecated. Should not store attributes here.</b>
*
* @param name the name of the attribute * @param name the name of the attribute
* @return the value of the named attribute * @return the value of the named attribute
*/ */
@Deprecated
public Object getAttribute(String name) public Object getAttribute(String name)
{ {
lastUsedTime = System.currentTimeMillis(); lastUsedTime = System.currentTimeMillis();
@ -216,9 +218,12 @@ public class ASLSession{
} }
/** /**
* <b>ASLSession is deprecated. Should not store attributes here.</b>
*
* @param name the name of the attribute * @param name the name of the attribute
* @param value the value of the attribute * @param value the value of the attribute
*/ */
@Deprecated
public void setAttribute(String name, Object value) public void setAttribute(String name, Object value)
{ {
lastUsedTime = System.currentTimeMillis(); lastUsedTime = System.currentTimeMillis();
@ -230,10 +235,14 @@ public class ASLSession{
} }
/** /**
* Removes the named attribute from the session *
* <b>ASLSession is deprecated. Should not store attributes here.</b>
*
*
* @param name the name of the attribute * @param name the name of the attribute
* @return the removed object * @return the removed object
*/ */
@Deprecated
public Object removeAttribute(String name) public Object removeAttribute(String name)
{ {
lastUsedTime = System.currentTimeMillis(); lastUsedTime = System.currentTimeMillis();