Share via


JsonWebKey.ToAes Method

Definition

Converts this JsonWebKey of type Oct or OctHsm to an Aes object.

public System.Security.Cryptography.Aes ToAes ();
member this.ToAes : unit -> System.Security.Cryptography.Aes
Public Function ToAes () As Aes

Returns

Aes

An Aes object.

Exceptions

This key is not of type Oct or K is null.

Applies to