net.i2p.data.i2np
Class EncryptedBuildRecord

java.lang.Object
  extended by net.i2p.data.DataStructureImpl
      extended by net.i2p.data.SimpleDataStructure
          extended by net.i2p.data.i2np.EncryptedBuildRecord
All Implemented Interfaces:
Serializable, DataStructure

public class EncryptedBuildRecord
extends SimpleDataStructure

ElGamal-encrypted request or response. 528 bytes. Previously stored in a ByteArray. May or may not be AES layer-encrypted. Note that these are layer-encrypted and layer-decrypted in-place. Do not cache.

Since:
0.9.18
See Also:
Serialized Form

Field Summary
static int LENGTH
           
 
Fields inherited from class net.i2p.data.SimpleDataStructure
_data
 
Constructor Summary
EncryptedBuildRecord(byte[] data)
           
 
Method Summary
 int length()
          The legal length of the byte array in this data structure
 
Methods inherited from class net.i2p.data.SimpleDataStructure
calculateHash, equals, fromBase64, fromByteArray, getData, hashCode, readBytes, setData, toBase64, toByteArray, toString, writeBytes
 
Methods inherited from class net.i2p.data.DataStructureImpl
read
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LENGTH

public static final int LENGTH
See Also:
Constant Field Values
Constructor Detail

EncryptedBuildRecord

public EncryptedBuildRecord(byte[] data)
Throws:
IllegalArgumentException - if data is not correct length (null is ok)
Method Detail

length

public int length()
Description copied from class: SimpleDataStructure
The legal length of the byte array in this data structure

Specified by:
length in class SimpleDataStructure