Class ServletSessionDao
java.lang.Object
se.swedenconnect.bankid.idp.authn.session.ServletSessionDao
- All Implemented Interfaces:
SessionDao
Implements the
SessionDao interface using the session extracted from the HttpServletRequest.
If using Spring session the session objects will be distributed.- Author:
- Martin Lindström, Felix Hellman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TReads the object identified bykeyof typetClass.voidRemoves the object identified bykey.voidWrites objectvalueunder the keykey.
-
Constructor Details
-
ServletSessionDao
public ServletSessionDao()
-
-
Method Details
-
write
Writes objectvalueunder the keykey.- Specified by:
writein interfaceSessionDao- Parameters:
key- the object keyvalue- the objectrequest- the HTTP servlet request
-
read
Reads the object identified bykeyof typetClass.- Specified by:
readin interfaceSessionDao- Type Parameters:
T- the type- Parameters:
key- the object keytClass- the type of the object to readrequest- the HTTP servlet request- Returns:
- the object, or
nullif none is available
-
remove
Removes the object identified bykey.- Specified by:
removein interfaceSessionDao- Parameters:
key- the object keyrequest- the HTTP servlet request
-