net.named_data.jndn.encrypt
public class EncryptedContent extends Object
Constructor and Description |
---|
EncryptedContent()
Create an EncryptedContent where all the values are unspecified.
|
EncryptedContent(EncryptedContent encryptedContent)
Create an EncryptedContent as a deep copy of the given object.
|
Modifier and Type | Method and Description |
---|---|
EncryptAlgorithmType |
getAlgorithmType()
Get the algorithm type.
|
Blob |
getInitialVector()
Get the initial vector.
|
KeyLocator |
getKeyLocator()
Get the key locator.
|
Blob |
getPayload()
Get the payload.
|
EncryptedContent |
setAlgorithmType(EncryptAlgorithmType algorithmType)
Set the algorithm type.
|
EncryptedContent |
setInitialVector(Blob initialVector)
Set the initial vector.
|
EncryptedContent |
setKeyLocator(KeyLocator keyLocator)
Set the key locator.
|
EncryptedContent |
setPayload(Blob payload)
Set the encrypted payload.
|
void |
wireDecode(Blob input)
Decode the input the default wire format and update this EncryptedContent.
|
void |
wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this
EncryptedContent.
|
void |
wireDecode(ByteBuffer input)
Decode the input wire encoding using the default wire format and update
this EncryptedContent.
|
void |
wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this
EncryptedContent.
|
Blob |
wireEncode()
Encode this EncryptedContent for the default wire format.
|
Blob |
wireEncode(WireFormat wireFormat)
Encode this EncryptedContent to a wire encoding.
|
public EncryptedContent()
public EncryptedContent(EncryptedContent encryptedContent)
encryptedContent
- The other encryptedContent to copy.public final EncryptAlgorithmType getAlgorithmType()
public final KeyLocator getKeyLocator()
public final Blob getInitialVector()
public final Blob getPayload()
public final EncryptedContent setAlgorithmType(EncryptAlgorithmType algorithmType)
algorithmType
- The algorithm type. If not specified, set to null.public final EncryptedContent setKeyLocator(KeyLocator keyLocator)
keyLocator
- The key locator. This makes a copy of the object. If not
specified, set to the default KeyLocator().public final EncryptedContent setInitialVector(Blob initialVector)
initialVector
- The initial vector. If not specified, set to the
default Blob() where isNull() is true.public final EncryptedContent setPayload(Blob payload)
payload
- The payload. If not specified, set to the default Blob()
where isNull() is true.public final Blob wireEncode(WireFormat wireFormat)
wireFormat
- A WireFormat object used to encode this EncryptedContent.public final Blob wireEncode()
public final void wireDecode(ByteBuffer input, WireFormat wireFormat) throws EncodingException
input
- The input buffer to decode. This reads from position() to
limit(), but does not change the position.wireFormat
- A WireFormat object used to decode the input.EncodingException
- For invalid encoding.public final void wireDecode(ByteBuffer input) throws EncodingException
input
- The input buffer to decode. This reads from position() to
limit(), but does not change the position.EncodingException
- For invalid encoding.public final void wireDecode(Blob input, WireFormat wireFormat) throws EncodingException
input
- The input blob to decode.wireFormat
- A WireFormat object used to decode the input.EncodingException
- For invalid encoding.public final void wireDecode(Blob input) throws EncodingException
input
- The input blob to decode.EncodingException
- For invalid encoding.Copyright © 2016. All rights reserved.