GetByOid Method
GetByOid(Oid)
Gets a key definition by its object identifier (OID).
C#
public static KeyDefinitions.KeyDefinition GetByOid(Oid oid)
Parameters
Type | Name | Description |
---|---|---|
Oid | oid | The object identifier (OID) of the key. |
Returns
The key definition for the specified OID.
Exceptions
Type | Condition |
---|---|
NotSupportedException | When the OID is not supported or when the OID is for an RSA key. |
GetByOid(string)
Gets a key definition by its object identifier (OID).
C#
public static KeyDefinitions.KeyDefinition GetByOid(string oid)
Parameters
Type | Name | Description |
---|---|---|
string | oid | The object identifier (OID) of the key. |
Returns
The key definition for the specified OID.
Exceptions
Type | Condition |
---|---|
NotSupportedException | When the OID is not supported or when the OID is for an RSA key. |