Package net.messagevortex.asn1
Class AddRedundancyOperation
java.lang.Object
net.messagevortex.asn1.AbstractBlock
net.messagevortex.asn1.Operation
net.messagevortex.asn1.AbstractRedundancyOperation
net.messagevortex.asn1.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 Summary
FieldsFields inherited from class net.messagevortex.asn1.AbstractRedundancyOperation
DATA_STRIPES, GF_SIZE, INPUT_ID, KEYS, OUTPUT_ID, REDUNDANCYFields inherited from class net.messagevortex.asn1.AbstractBlock
CRLF -
Constructor Summary
ConstructorsConstructorDescriptionAddRedundancyOperation(int inputId, int dataStripes, int redundancy, List<SymmetricKey> keys, int outputId, int gfSize) AddRedundancyOperation(org.bouncycastle.asn1.ASN1Encodable to) Create object from ASN.1 code. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddRedundancyOperationgetInstance(Object obj) Static conversion method.getNewInstance(org.bouncycastle.asn1.ASN1Encodable object) Gets an instance of the object.org.bouncycastle.asn1.ASN1ObjecttoAsn1Object(DumpType dumpType) Dumps an ASN.1 representation of the object.org.bouncycastle.asn1.ASN1PrimitiveMethods inherited from class net.messagevortex.asn1.AbstractRedundancyOperation
dumpValueNotation, getDataStripes, getGfSize, getInputId, getKeys, getOutputId, getRedundancy, parse, setDataStripes, setGfSize, setInputId, setKeys, setOutputId, setRedundancyMethods 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
-
AddRedundancyOperation
public AddRedundancyOperation(int inputId, int dataStripes, int redundancy, List<SymmetricKey> keys, int outputId, int gfSize) -
AddRedundancyOperation
Create object from ASN.1 code.
- Parameters:
to- the ASN.1 code- Throws:
IOException- if parsing of ASN.1 code fails
-
-
Method Details
-
getInstance
Static conversion method.
- Parameters:
obj- the object to be converted- Returns:
- the converted object
- Throws:
IOException- if conversion fails
-
toAsn1Object
Description copied from interface:DumpableDumps an ASN.1 representation of the object.
- Specified by:
toAsn1Objectin interfaceDumpable- Overrides:
toAsn1Objectin classAbstractRedundancyOperation- 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
- Throws:
IOException
-
getNewInstance
Description copied from class:OperationGets an instance of the object.
- Specified by:
getNewInstancein classOperation- Parameters:
object- the object to be parsed- Returns:
- the parsed operation object
- Throws:
IOException- if parsing fails
-