X509AlgorithmIdentifier

constructor(element: Asn1Sequence)(source)
constructor(oid: ObjectIdentifier, parameters: WrappedElement<out Asn1Element>?)(source)


constructor(oid: ObjectIdentifier, parameters: Asn1Element?)(source)

Convenience constructor for creating an instance of X509AlgorithmIdentifier using an ObjectIdentifier and a list of Asn1Element parameters.

Note that passing null as parameters is different from passing Asn1Null as parameters. Passing null omits the second member from the sequence entirely. (e.g., ECDSA) Passing Asn1Null encodes ASN.1 NULL as the second member of the sequence. (e.g., RSA/PKCS1)

Parameters

oid

The object identifier representing the algorithm.

parameters

The algorithm parameters element, if any.


constructor(oid: ObjectIdentifier, parameters: List<Asn1Element>)(source)

Deprecated

parameters can only have 0 or 1 elements, use nullable ctor

Replace with

X509AlgorithmIdentifier(oid, parameters.singleOrNull())