Package net.messagevortex.asn1
Class EncryptPayloadOperation
java.lang.Object
net.messagevortex.asn1.AbstractBlock
net.messagevortex.asn1.Operation
net.messagevortex.asn1.AbstractCryptPayloadOperation
net.messagevortex.asn1.EncryptPayloadOperation
- All Implemented Interfaces:
Serializable,Block,Dumpable
- See Also:
-
Field Summary
FieldsFields inherited from class net.messagevortex.asn1.AbstractBlock
CRLF -
Constructor Summary
ConstructorsConstructorDescriptionEncryptPayloadOperation(int sourceBlock, int targetBlock, SymmetricKey key) Create a functional encryption operation.EncryptPayloadOperation(org.bouncycastle.asn1.ASN1Encodable object) Create object from ASN.1 code. -
Method Summary
Modifier and TypeMethodDescriptiongetNewInstance(org.bouncycastle.asn1.ASN1Encodable object) Gets an instance of the object.Methods inherited from class net.messagevortex.asn1.AbstractCryptPayloadOperation
dumpValueNotation, parse, toAsn1ObjectMethods inherited from class net.messagevortex.asn1.Operation
getTagNumber, setTagNumberMethods inherited from class net.messagevortex.asn1.AbstractBlock
fromBase64, fromHex, parse, prepareDump, toBase64, toBitString, toBytes, toDer, toHex
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
EncryptPayloadOperation
public EncryptPayloadOperation(int sourceBlock, int targetBlock, SymmetricKey key) throws IOException Create a functional encryption operation.
- Parameters:
sourceBlock- the block in the workspace to be encryptedtargetBlock- the resulting block in the workspacekey- the key to be applied (null for generating a random key- Throws:
IOException- if key generation fails
-
EncryptPayloadOperation
Create object from ASN.1 code.
- Parameters:
object- the ASN.1 code- Throws:
IOException- if parsing of ASN.1 code fails
-
-
Method Details
-
getNewInstance
Description copied from class:OperationGets an instance of the object.
- Specified by:
getNewInstancein classAbstractCryptPayloadOperation- Parameters:
object- the object to be parsed- Returns:
- the parsed operation object
- Throws:
IOException- if parsing fails
-