Cumulus4j API
(1.0.1)

org.cumulus4j.keymanager.front.shared
Class AcquireCryptoSessionResponse

java.lang.Object
  extended by org.cumulus4j.keymanager.front.shared.AcquireCryptoSessionResponse
All Implemented Interfaces:
Serializable

public class AcquireCryptoSessionResponse
extends Object
implements Serializable

Response sent back from the key-server to the client after it requested opening a session. This might not necessarily represent a new session as a previously opened session might just be refreshed and reused.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de
See Also:
Serialized Form

Constructor Summary
AcquireCryptoSessionResponse()
           
 
Method Summary
 String getCryptoSessionID()
           Get the crypto-session's unique identifier.
 Date getExpiry()
          Get the timestamp, when this session expires.
 void setCryptoSessionID(String cryptoSessionID)
          Set the crypto-session's unique identifier.
 void setExpiry(Date expiry)
          Set the timestamp, when this session expires.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcquireCryptoSessionResponse

public AcquireCryptoSessionResponse()
Method Detail

getCryptoSessionID

public String getCryptoSessionID()

Get the crypto-session's unique identifier.

This identifier is composed of 3 parts:

Note, that this identifier is structurally the same, no matter if the key-manager is embedded in the client or separate in a key-server.

Returns:
the crypto-session's unique identifier.
See Also:
setCryptoSessionID(String)

setCryptoSessionID

public void setCryptoSessionID(String cryptoSessionID)
Set the crypto-session's unique identifier. See getCryptoSessionID() for how such an identifier must look like.

Parameters:
cryptoSessionID - the crypto-session's unique identifier.
See Also:
getCryptoSessionID()

getExpiry

public Date getExpiry()
Get the timestamp, when this session expires. The session expires only, if it is not refreshed before this date (refreshing postpones the expiry).

Returns:
the timestamp, when this session expires.
See Also:
setExpiry(Date)

setExpiry

public void setExpiry(Date expiry)
Set the timestamp, when this session expires.

Parameters:
expiry - the timestamp, when this session expires.
See Also:
getExpiry()

Cumulus4j API
(1.0.1)

Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.