Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IRsaOaepContextBuilder2

interface IRsaOaepContextBuilder2
Extends IRsaOaepContextBuilder Enhanced RSA-OAEP context builder with support for explicit labels. This interface extends the original IRsaOaepContextBuilder2 with additional functionality for setting an OAEP label.

Methods

label()

IRsaOaepContextBuilder2* label(u8[] label)
Set an explicit label for RSA-OAEP operations. The label (also known as associated data) is an optional parameter in RSA-OAEP that provides additional security by binding the ciphertext to specific context information.

Parameters

label
u8[] — Required The label to use for OAEP operations.

Returns

IRsaOaepContextBuilder2* This builder for method chaining.
Last modified on October 29, 2026