Skip to content
PKIjsPKIjsPKIjsv4.0.1

getAlgorithmByOID

getAlgorithmByOID<T>(oid, safety?, target?): object | T

Gets WebCrypto algorithm by well-known OID

T extends Algorithm = Algorithm

string

algorithm identifier

boolean

if true throws exception on unknown algorithm identifier

string

name of the target

object | T

WebCrypto algorithm or an empty object

getAlgorithmByOID<T>(oid, safety, target?): T

Gets WebCrypto algorithm by well-known OID

T extends Algorithm = Algorithm

string

algorithm identifier

true

if true throws exception on unknown algorithm identifier

string

name of the target

T

WebCrypto algorithm or an empty object