Cumulus4j API
(1.2.0)

org.cumulus4j.store.crypto
Class Ciphertext

java.lang.Object
  extended by org.cumulus4j.store.crypto.Ciphertext

public class Ciphertext
extends Object

Object representing encrypted information (aka ciphertext).

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

Constructor Summary
Ciphertext()
           
 
Method Summary
 byte[] getData()
          Get the encrypted information.
 long getKeyID()
          Get the identifier of the key used to encrypt the data.
 void setData(byte[] data)
          Set the encrypted information.
 void setKeyID(long keyID)
          Set the identifier of the key used to encrypt the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ciphertext

public Ciphertext()
Method Detail

getKeyID

public long getKeyID()
Get the identifier of the key used to encrypt the data.

Returns:
the key identifier.

setKeyID

public void setKeyID(long keyID)
Set the identifier of the key used to encrypt the data.

Parameters:
keyID - the key identifier.

getData

public byte[] getData()
Get the encrypted information.

Returns:
the encrypted information or null.

setData

public void setData(byte[] data)
Set the encrypted information.

Parameters:
data - the encrypted information or null.

Cumulus4j API
(1.2.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.