public class RoutingCombo extends AbstractBlock implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
MURB |
static int |
OPERATIONS |
static int |
PREFIX_ENCRYPTED |
static int |
PREFIX_PLAIN |
static int |
ROUTING_ENCRYPTED |
static int |
ROUTING_PLAIN |
static long |
serialVersionUID |
CRLF
Constructor and Description |
---|
RoutingCombo()
Creates an empty router block.
|
RoutingCombo(org.bouncycastle.asn1.ASN1Encodable to) |
RoutingCombo(byte[] b,
boolean encrypted)
Creates a router block from a DER representation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addOperation(Operation o) |
String |
dumpValueNotation(String prefix,
DumpType dumpType) |
boolean |
equals(Object o) |
long |
getFirstProcessTime() |
long |
getLastProcessTime() |
int |
hashCode() |
boolean |
isEncrypted() |
protected void |
parse(org.bouncycastle.asn1.ASN1Encodable to) |
long |
setFistProcessTime(long minProcessTime)
Sets time when router block could be processed (earliest).
|
long |
setLastProcessTime(long maxProcessTime)
Sets time when router block could be processed (latest).
|
org.bouncycastle.asn1.ASN1Object |
toAsn1Object(DumpType dumpType)
Dumps an ASN.1 representation of the object.
|
byte[] |
toEncBytes() |
fromBase64, fromHex, parse, prepareDump, toBase64, toBitString, toBytes, toDer, toHex
public static final long serialVersionUID
public static final int MURB
public static final int OPERATIONS
public static final int PREFIX_PLAIN
public static final int PREFIX_ENCRYPTED
public static final int ROUTING_PLAIN
public static final int ROUTING_ENCRYPTED
public RoutingCombo()
Creates an empty router block.
public RoutingCombo(byte[] b, boolean encrypted) throws IOException
Creates a router block from a DER representation.
if a router block is assumed encryptedand without decryption key) it stores the block as binary blob without handling its inner workings
b
- the binary representation of the DER encoded and possibly encrypted blockencrypted
- flagging whether this block is expected to be unparseable due to its
encryptionIOException
- if failing to parse the blockpublic RoutingCombo(org.bouncycastle.asn1.ASN1Encodable to) throws IOException
IOException
protected final void parse(org.bouncycastle.asn1.ASN1Encodable to) throws IOException
parse
in class AbstractBlock
IOException
public boolean isEncrypted()
public long getFirstProcessTime()
public long setFistProcessTime(long minProcessTime)
Sets time when router block could be processed (earliest).
minProcessTime
- the time to be setpublic long getLastProcessTime()
public long setLastProcessTime(long maxProcessTime)
Sets time when router block could be processed (latest).
maxProcessTime
- the time to be setpublic org.bouncycastle.asn1.ASN1Object toAsn1Object(DumpType dumpType) throws IOException
Dumpable
Dumps an ASN.1 representation of the object.
toAsn1Object
in interface Dumpable
dumpType
- the dump type to be usedIOException
- if dumping of the object fails due to an illegal internal state of the
objectpublic boolean addOperation(Operation o)
public byte[] toEncBytes()
public String dumpValueNotation(String prefix, DumpType dumpType)
dumpValueNotation
in interface Block
Copyright © 2023. All rights reserved.