Перейти к содержимому
Abblix
Эта страница ещё не переведена.

EncryptedData Class

Represents the result of JWE content encryption operation. Contains the components required for JWE Compact Serialization per RFC 7516.

C#
public record EncryptedData : System.IEquatable<Abblix.Jwt.Encryption.EncryptedData>

Inheritance System.Object → EncryptedData

Implements System.IEquatable<EncryptedData>

Constructors

EncryptedData(byte[], byte[], byte[]) Constructor

Represents the result of JWE content encryption operation. Contains the components required for JWE Compact Serialization per RFC 7516.

C#
public EncryptedData(byte[] InitializationVector, byte[] Ciphertext, byte[] AuthenticationTag);

Parameters

InitializationVector System.Byte[]

The random initialization vector (IV) used for content encryption.

Ciphertext System.Byte[]

The encrypted content (plaintext encrypted with CEK).

AuthenticationTag System.Byte[]

The authentication tag for verifying ciphertext integrity.

Properties

EncryptedData.AuthenticationTag Property

The authentication tag for verifying ciphertext integrity.

C#
public byte[] AuthenticationTag { get; init; }

Property Value

System.Byte[]

EncryptedData.Ciphertext Property

The encrypted content (plaintext encrypted with CEK).

C#
public byte[] Ciphertext { get; init; }

Property Value

System.Byte[]

EncryptedData.InitializationVector Property

The random initialization vector (IV) used for content encryption.

C#
public byte[] InitializationVector { get; init; }

Property Value

System.Byte[]