# Preview API

Show preview API for:

- 524: PEM Encodings of Cryptographic Objects (Second Preview)
- 531: Lazy Constants (Third Preview)
- 533: Structured Concurrency (Seventh Preview)
- Toggle all

## Contents

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

Interfaces
Interface
Preview Feature
Description
java.lang.LazyConstantPREVIEW
Lazy Constants
A lazy constant is a holder of content that can be initialized 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 produce the outcome for the scope's `join()`PREVIEW method.
java.util.concurrent.StructuredTaskScope.SubtaskPREVIEW
Structured Concurrency
Represents a subtask forked in a `StructuredTaskScope`PREVIEW with `fork(Callable)`PREVIEW or `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`PREVIEW.

Exception Classes
Exception Class
Preview Feature
Description
java.util.concurrent.StructuredTaskScope.CancelledByTimeoutExceptionPREVIEW
Structured Concurrency
The exception cause when `join()`PREVIEW throws because the scope was cancelled by a timeout.
java.util.concurrent.StructureViolationExceptionPREVIEW
Structured Concurrency
Thrown when a structure violation is detected.

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

Methods
Method
Preview Feature
Description
java.util.List.ofLazy(int, IntFunction<? extends E>)PREVIEW
Lazy Constants
Returns a new lazily computed list of the provided `size`.
java.util.Map.ofLazy(Set<? extends K>, Function<? super K, ? extends V>)PREVIEW
Lazy Constants
Returns a new lazily computed map with the provided `keys`.
java.util.Set.ofLazy(Set<? extends E>, Predicate<? super E>)PREVIEW
Lazy Constants
Returns a new lazily computed set whose logical membership for each distinct element candidate in the set of `elementCandidates` is computed via the provided `computingFunction` on demand.
javax.crypto.EncryptedPrivateKeyInfo.encrypt(DEREncodable, char[])PREVIEW
PEM Encodings of Cryptographic Objects
Creates an `EncryptedPrivateKeyInfo` by encrypting the specified `DEREncodable`.
javax.crypto.EncryptedPrivateKeyInfo.encrypt(DEREncodable, char[], String, AlgorithmParameterSpec, Provider)PREVIEW
PEM Encodings of Cryptographic Objects
Creates an `EncryptedPrivateKeyInfo` by encrypting the specified `DEREncodable`.
javax.crypto.EncryptedPrivateKeyInfo.encrypt(DEREncodable, Key, String, AlgorithmParameterSpec, Provider, SecureRandom)PREVIEW
PEM Encodings of Cryptographic Objects
Creates an `EncryptedPrivateKeyInfo` by encrypting the specified `DEREncodable`.
javax.crypto.EncryptedPrivateKeyInfo.getKey(char[])PREVIEW
PEM Encodings of Cryptographic Objects
Extracts and returns the enclosed `PrivateKey` using the specified password.
javax.crypto.EncryptedPrivateKeyInfo.getKey(Key, Provider)PREVIEW
PEM Encodings of Cryptographic Objects
Extracts and returns the enclosed `PrivateKey` using the specified decryption key and provider.
javax.crypto.EncryptedPrivateKeyInfo.getKeyPair(char[])PREVIEW
PEM Encodings of Cryptographic Objects
Extracts and returns the enclosed `KeyPair` using the specified password.
javax.crypto.EncryptedPrivateKeyInfo.getKeyPair(Key, Provider)PREVIEW
PEM Encodings of Cryptographic Objects
Extracts and returns the enclosed `KeyPair` using the specified decryption key and provider.