# Preview API

Show preview API for:

- 470: PEM Encodings of Cryptographic Objects (Preview)
- 502: Stable Values (Preview)
- 505: Structured Concurrency (Fifth Preview)
- Toggle all

## Contents

- Interfaces
- Classes
- Enum Classes
- Exception Classes
- Record Classes
- Methods

- Interfaces
  Interface
  Preview Feature
  Description
  java.lang.StableValuePREVIEW
  Stable Values
  A stable value is a holder of contents that can be set at most once.
  java.security.DEREncodablePREVIEW
  PEM Encodings of Cryptographic Objects
  This interface is implemented by security API classes that contain binary-encodable key or certificate material.
  java.util.concurrent.StructuredTaskScopePREVIEW
  Structured Concurrency
  An API for structured concurrency.
  java.util.concurrent.StructuredTaskScope.ConfigurationPREVIEW
  Structured Concurrency
  Represents the configuration for a `StructuredTaskScope`.
  java.util.concurrent.StructuredTaskScope.JoinerPREVIEW
  Structured Concurrency
  An object used with a `StructuredTaskScope`PREVIEW to handle subtask completion and produce the result for the scope owner waiting in the `join`PREVIEW method for subtasks to complete.
  java.util.concurrent.StructuredTaskScope.SubtaskPREVIEW
  Structured Concurrency
  Represents a subtask forked with `StructuredTaskScope.fork(Callable)`PREVIEW or `StructuredTaskScope.fork(Runnable)`PREVIEW.

- Classes
  Class
  Preview Feature
  Description
  java.security.PEMDecoderPREVIEW
  PEM Encodings of Cryptographic Objects
  `PEMDecoder` implements a decoder for Privacy-Enhanced Mail (PEM) data.
  java.security.PEMEncoderPREVIEW
  PEM Encodings of Cryptographic Objects
  `PEMEncoder` implements an encoder for Privacy-Enhanced Mail (PEM) data.

- Enum Classes
  Enum Class
  Preview Feature
  Description
  java.util.concurrent.StructuredTaskScope.Subtask.StatePREVIEW
  Structured Concurrency
  Represents the state of a subtask.

- Exception Classes
  Exception Class
  Preview Feature
  Description
  java.util.concurrent.StructuredTaskScope.FailedExceptionPREVIEW
  Structured Concurrency
  Exception thrown by `StructuredTaskScope.join()`PREVIEW when the outcome is an exception rather than a result.
  java.util.concurrent.StructuredTaskScope.TimeoutExceptionPREVIEW
  Structured Concurrency
  Exception thrown by `StructuredTaskScope.join()`PREVIEW if the scope was created with a timeout and the timeout expired before or while waiting in `join`.
  java.util.concurrent.StructureViolationExceptionPREVIEW
  Structured Concurrency
  Thrown when a structure violation is detected.

- Record Classes
  Record Class
  Preview Feature
  Description
  java.security.PEMRecordPREVIEW
  PEM Encodings of Cryptographic Objects
  `PEMRecord` is a `DEREncodable`PREVIEW that represents Privacy-Enhanced Mail (PEM) data by its type and Base64 form.

- Methods
  Method
  Preview Feature
  Description
  javax.crypto.EncryptedPrivateKeyInfo.encryptKey(PrivateKey, char[])PREVIEW
  PEM Encodings of Cryptographic Objects
  Creates and encrypts an `EncryptedPrivateKeyInfo` from a given `PrivateKey` and password.
  javax.crypto.EncryptedPrivateKeyInfo.encryptKey(PrivateKey, char[], String, AlgorithmParameterSpec, Provider)PREVIEW
  PEM Encodings of Cryptographic Objects
  Creates and encrypts an `EncryptedPrivateKeyInfo` from a given `PrivateKey`.
  javax.crypto.EncryptedPrivateKeyInfo.encryptKey(PrivateKey, Key, String, AlgorithmParameterSpec, Provider, SecureRandom)PREVIEW
  PEM Encodings of Cryptographic Objects
  Creates and encrypts an `EncryptedPrivateKeyInfo` from the given `PrivateKey` using the `encKey` and given parameters.
  javax.crypto.EncryptedPrivateKeyInfo.getKey(char[])PREVIEW
  PEM Encodings of Cryptographic Objects
  Extract the enclosed `PrivateKey` object from the encrypted data and return it.
  javax.crypto.EncryptedPrivateKeyInfo.getKey(Key, Provider)PREVIEW
  PEM Encodings of Cryptographic Objects
  Extract the enclosed `PrivateKey` object from the encrypted data and return it.