Class AbstractCryptPayloadOperation

java.lang.Object
net.messagevortex.asn1.AbstractBlock
net.messagevortex.asn1.Operation
net.messagevortex.asn1.AbstractCryptPayloadOperation
All Implemented Interfaces:
Serializable, Block, Dumpable
Direct Known Subclasses:
DecryptPayloadOperation, EncryptPayloadOperation

public abstract class AbstractCryptPayloadOperation extends Operation implements Serializable, Dumpable
See Also:
  • Field Details

  • Constructor Details

    • AbstractCryptPayloadOperation

      public AbstractCryptPayloadOperation(org.bouncycastle.asn1.ASN1Encodable object) throws IOException

      Create object from ASN.1 code.

      Parameters:
      object - the ASN.1 code
      Throws:
      IOException - if parsing of ASN.1 code fails
  • Method Details

    • parse

      protected final void parse(org.bouncycastle.asn1.ASN1Encodable to) throws IOException
      Specified by:
      parse in class AbstractBlock
      Throws:
      IOException
    • dumpValueNotation

      public String dumpValueNotation(String prefix, DumpType dumptype)
      Specified by:
      dumpValueNotation in interface Block
    • toAsn1Object

      public org.bouncycastle.asn1.ASN1Object toAsn1Object(DumpType dumpType) throws IOException
      Description copied from interface: Dumpable

      Dumps an ASN.1 representation of the object.

      Specified by:
      toAsn1Object in interface Dumpable
      Parameters:
      dumpType - the dump type to be used
      Returns:
      the ASN.1 string representation of the object
      Throws:
      IOException - if dumping of the object fails due to an illegal internal state of the object
    • getNewInstance

      public abstract Operation getNewInstance(org.bouncycastle.asn1.ASN1Encodable object) throws IOException
      Description copied from class: Operation

      Gets an instance of the object.

      Specified by:
      getNewInstance in class Operation
      Parameters:
      object - the object to be parsed
      Returns:
      the parsed operation object
      Throws:
      IOException - if parsing fails