Class AddRedundancyOperation

All Implemented Interfaces:
Serializable, Block, Dumpable, org.bouncycastle.asn1.ASN1Choice

public class AddRedundancyOperation extends AbstractRedundancyOperation implements Serializable, Dumpable
Represents a addRedundancy operation on a router block.
See Also:
  • Field Details

  • Constructor Details

    • AddRedundancyOperation

      public AddRedundancyOperation(int inputId, int dataStripes, int redundancy, List<SymmetricKey> keys, int outputId, int gfSize)
    • AddRedundancyOperation

      public AddRedundancyOperation(org.bouncycastle.asn1.ASN1Encodable to) throws IOException

      Create object from ASN.1 code.

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

    • getInstance

      public static AddRedundancyOperation getInstance(Object obj) throws IOException

      Static conversion method.

      Parameters:
      obj - the object to be converted
      Returns:
      the converted object
      Throws:
      IOException - if conversion fails
    • 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
      Overrides:
      toAsn1Object in class AbstractRedundancyOperation
      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
    • toAsn1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toAsn1Primitive() throws IOException
      Throws:
      IOException
    • getNewInstance

      public 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