|
Cumulus4j API (1.2.0-SNAPSHOT) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.keymanager.Session
public class Session
Session to control and restrict the key exchange with the application server.
In order to protect the keys as well as possible, keys can only be requested from an application
server within the scope of a so-called crypto-session. The client controls when to open/close a crypto-session
and when to allow keys to be transferred. Key transfer is only possible while a session is unlocked
.
This is not API! Use the classes and interfaces provided by org.cumulus4j.keymanager.api
instead.
Constructor Summary | |
---|---|
protected |
Session(SessionManager sessionManager,
String userName,
char[] password)
|
Method Summary | |
---|---|
void |
destroy()
|
String |
getCryptoSessionID()
Get the identifier of this session. |
Date |
getExpiry()
|
Date |
getLastUse()
|
char[] |
getPassword()
|
String |
getUserName()
|
boolean |
isReleased()
|
void |
reacquire()
|
void |
release()
|
protected void |
setReleased(boolean released)
Set the 'released' status. |
protected void |
updateLastUse(long expiryAgeMSec)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Session(SessionManager sessionManager, String userName, char[] password)
Method Detail |
---|
public String getCryptoSessionID()
public String getUserName()
public char[] getPassword()
public Date getLastUse()
protected void updateLastUse(long expiryAgeMSec)
public Date getExpiry()
public void destroy()
protected void setReleased(boolean released)
Set the 'released' status.
The application server can only request keys from a session that is currently acquired. That means, a session should first be acquired, then the app-server should be made to work (on behalf of the client) and finally, it should be released again.
released
- the new 'released' status.public void release()
public boolean isReleased()
public void reacquire()
|
Cumulus4j API (1.2.0-SNAPSHOT) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |