|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ripe.rpki.commons.crypto.util.Asn1Util
public final class Asn1Util
| Method Summary | ||
|---|---|---|
static org.bouncycastle.asn1.ASN1Primitive |
decode(byte[] extension)
Decodes the byte array extension using the ASN1InputStream. |
|
static byte[] |
encode(org.bouncycastle.asn1.ASN1Encodable value)
|
|
static org.bouncycastle.asn1.DERBitString |
encodeIpAddress(net.ripe.ipresource.IpRange prefix)
IPAddress ::= BIT STRING |
|
static
|
expect(org.bouncycastle.asn1.ASN1Encodable value,
Class<? extends T> expectedClass)
Checks if value is an instance of the
expectedClass. |
|
static net.ripe.ipresource.Asn |
parseAsId(org.bouncycastle.asn1.ASN1Encodable der)
ASId ::= INTEGER |
|
static net.ripe.ipresource.IpAddress |
parseIpAddress(net.ripe.ipresource.IpResourceType type,
org.bouncycastle.asn1.ASN1Encodable der,
boolean padWithOnes)
IPAddress ::= BIT STRING |
|
static net.ripe.ipresource.IpRange |
parseIpAddressAsPrefix(net.ripe.ipresource.IpResourceType type,
org.bouncycastle.asn1.ASN1Encodable der)
IpAddress used as a prefix. |
|
static org.bouncycastle.asn1.DERBitString |
resourceToBitString(net.ripe.ipresource.UniqueIpResource resource,
int bitCount)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] encode(org.bouncycastle.asn1.ASN1Encodable value)
public static org.bouncycastle.asn1.DERBitString resourceToBitString(net.ripe.ipresource.UniqueIpResource resource,
int bitCount)
public static org.bouncycastle.asn1.ASN1Primitive decode(byte[] extension)
ASN1InputStream.
public static <T extends org.bouncycastle.asn1.ASN1Encodable> T expect(org.bouncycastle.asn1.ASN1Encodable value,
Class<? extends T> expectedClass)
value is an instance of the
expectedClass.
IllegalArgumentException - the instance is null or not an instance of the expected
class.
public static net.ripe.ipresource.IpRange parseIpAddressAsPrefix(net.ripe.ipresource.IpResourceType type,
org.bouncycastle.asn1.ASN1Encodable der)
IpAddress used as a prefix.
public static net.ripe.ipresource.IpAddress parseIpAddress(net.ripe.ipresource.IpResourceType type,
org.bouncycastle.asn1.ASN1Encodable der,
boolean padWithOnes)
public static net.ripe.ipresource.Asn parseAsId(org.bouncycastle.asn1.ASN1Encodable der)
public static org.bouncycastle.asn1.DERBitString encodeIpAddress(net.ripe.ipresource.IpRange prefix)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||