# Preview API

Show preview API for:

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

## Contents

- Interfaces
- Classes
- Enum Classes
- Exception 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.BinaryEncodablePREVIEW
PEM Encodings of Cryptographic Objects
This interface identifies the cryptographic objects that can be converted to and from binary data, and thereby encoded and decoded as PEM text.
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.PEMPREVIEW
PEM Encodings of Cryptographic Objects
A `BinaryEncodable`PREVIEW representing a Privacy-Enhanced Mail (PEM) structure composed of a type identifier, Base64-encoded content, and optional leading data that precedes the PEM header.
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.
javax.crypto.CryptoExceptionPREVIEW
PEM Encodings of Cryptographic Objects
Thrown to indicate a cryptographic failure during processing.

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(BinaryEncodable, char[])PREVIEW
PEM Encodings of Cryptographic Objects
Creates an `EncryptedPrivateKeyInfo` by encrypting the specified `BinaryEncodable`.
javax.crypto.EncryptedPrivateKeyInfo.encrypt(BinaryEncodable, char[], String, AlgorithmParameterSpec, Provider)PREVIEW
PEM Encodings of Cryptographic Objects
Creates an `EncryptedPrivateKeyInfo` by encrypting the specified `BinaryEncodable`.
javax.crypto.EncryptedPrivateKeyInfo.encrypt(BinaryEncodable, Key, String, AlgorithmParameterSpec, Provider, SecureRandom)PREVIEW
PEM Encodings of Cryptographic Objects
Creates an `EncryptedPrivateKeyInfo` by encrypting the specified `BinaryEncodable`.
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)PREVIEW
PEM Encodings of Cryptographic Objects
Extracts and returns the enclosed `PrivateKey` using the specified decryption key.
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)PREVIEW
PEM Encodings of Cryptographic Objects
Extracts and returns the enclosed `KeyPair` using the specified decryption key.