public interface ASN1Encodable
Modifier and Type | Method and Description |
---|---|
void |
encodeTo(ASN1Encoder encoder)
Encode this object.
|
static ASN1Encodable |
ofBMPString(String string)
Create an instance that will encode the given string as BMP (UTF-16BE).
|
static ASN1Encodable |
ofEncodedBytes(byte[] bytes)
Create an instance that will write the given encoded bytes.
|
static ASN1Encodable |
ofIA5String(String string)
Create an instance that will encode the given string in IA5 form.
|
static ASN1Encodable |
ofInteger(BigInteger value)
Create an instance that will encode the given integer.
|
static ASN1Encodable |
ofInteger(int value)
Create an instance that will encode the given integer.
|
static ASN1Encodable |
ofOid(String oid)
Create an instance that will encode the given object identifier.
|
static ASN1Encodable |
ofPrintableString(String string)
Create an instance that will encode the given string in "printable" form.
|
static ASN1Encodable |
ofUniversalString(String string)
Create an instance that will encode the given string as universal (UTF-32BE).
|
static ASN1Encodable |
ofUtf8String(String string)
Create an instance that will encode the given string as UTF-8.
|
void encodeTo(ASN1Encoder encoder)
encoder
- the encoder (must not be null
)static ASN1Encodable ofUtf8String(String string)
string
- the string to encode (must not be null
)static ASN1Encodable ofBMPString(String string)
string
- the string to encode (must not be null
)static ASN1Encodable ofUniversalString(String string)
string
- the string to encode (must not be null
)static ASN1Encodable ofIA5String(String string)
string
- the string to encode (must not be null
)static ASN1Encodable ofPrintableString(String string)
string
- the string to encode (must not be null
)static ASN1Encodable ofInteger(int value)
value
- the integer to encodestatic ASN1Encodable ofInteger(BigInteger value)
value
- the integer to encode (must not be null
)static ASN1Encodable ofOid(String oid)
oid
- the object identifier to encode (must not be null
)static ASN1Encodable ofEncodedBytes(byte[] bytes)
bytes
- the bytes to write (must not be null
)Copyright © 2021 JBoss by Red Hat. All rights reserved.