X509Object

This class represents abstract X.509 signed objects as in the X.500 SIGNED macro

Constructors

this
this(DataSource stream, string labels)
Undocumented in source.
this
this(string file, string labels)
Undocumented in source.
this
this(Vector!(ubyte, ALLOC) vec, string labels)
Undocumented in source.
this
this(RefCounted!(Vector!(ubyte, ALLOC), ALLOC) vec, string labels)
Undocumented in source.
this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

BER_encode
Vector!ubyte BER_encode()
PEM_encode
string PEM_encode()
checkSignature
bool checkSignature(PublicKey pub_key)

Check the signature on this data

decodeFrom
void decodeFrom(BERDecoder from)
Undocumented in source. Be warned that the author may not have intended to support it.
doDecode
void doDecode()
Undocumented in source. Be warned that the author may not have intended to support it.
encodeInto
void encodeInto(DEREncoder to)
Undocumented in source. Be warned that the author may not have intended to support it.
forceDecode
void forceDecode()
Undocumented in source.
hashUsedForSignature
string hashUsedForSignature()
signature
const(Vector!ubyte) signature()
signatureAlgorithm
const(AlgorithmIdentifier) signatureAlgorithm()
tbsData
const(Vector!ubyte) tbsData()

The underlying data that is to be or was signed

Static functions

makeSigned
Vector!ubyte makeSigned(PKSigner signer, RandomNumberGenerator rng, AlgorithmIdentifier algo, Vector!(ubyte, ALLOC) tbs_bits)
Vector!ubyte makeSigned(PKSigner signer, RandomNumberGenerator rng, AlgorithmIdentifier algo, RefCounted!(Vector!(ubyte, ALLOC), ALLOC) tbs_bits)

Create a signed X509 object.

Variables

m_sig
Vector!ubyte m_sig;
Undocumented in source.
m_sig_algo
AlgorithmIdentifier m_sig_algo;
Undocumented in source.
m_tbs_bits
Vector!ubyte m_tbs_bits;
Undocumented in source.

Inherited Members

From ASN1Object

encodeInto
void encodeInto(DEREncoder to)

Encode whatever this object is into to

decodeFrom
void decodeFrom(BERDecoder from)

Decode whatever this object is from from

Meta