Package net.i2p.data.i2np
Class ShortEncryptedBuildRecord
- java.lang.Object
-
- net.i2p.data.SimpleDataStructure
-
- net.i2p.data.i2np.EncryptedBuildRecord
-
- net.i2p.data.i2np.ShortEncryptedBuildRecord
-
- All Implemented Interfaces:
DataStructure
public class ShortEncryptedBuildRecord extends EncryptedBuildRecord
Small records. 218 bytes. Preliminary, see proposal 157. Note that these are layer-encrypted and layer-decrypted in-place. Do not cache.- Since:
- 0.9.49
-
-
Field Summary
Fields Modifier and Type Field Description static int
LENGTH
-
Fields inherited from class net.i2p.data.SimpleDataStructure
_data
-
-
Constructor Summary
Constructors Constructor Description ShortEncryptedBuildRecord(byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, read, readBytes, setData, toBase64, toByteArray, toString, writeBytes
-
-
-
-
Field Detail
-
LENGTH
public static final int LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShortEncryptedBuildRecord
public ShortEncryptedBuildRecord(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- Overrides:
length
in classEncryptedBuildRecord
-
-