These classes, enums, and interfaces are new or have changes.
For more information on these enhancements, see the Apex Developer Guide and the Apex Reference Guide.
- Auth Namespace
The Auth namespace has these new and changed classes. - ConnectApi Namespace
The ConnectApi namespace (Connect in Apex) has new or changed classes, methods, or enums. - Database Namespace
The Database namespace has these new or changed classes, methods, interfaces, enums, or exceptions. - ItSvcAssetDcvr Namespace
The IT Service Asset Discovery (ItSvcAssetDcvr) namespace has these new or changed classes. - System Namespace
The System namespace has these new or changed classes, methods, interfaces, enums, or exceptions. - SF_Archive Namespace
The SF_Archive namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
Auth Namespace
The Auth namespace has these new and changed classes.
New or Changed Constructors in Existing Classes
- Implement the OAuth 2.0 Demonstrating Proof-of-Possession (DPoP) extension.
- Use the
generateDPoPProofForTokenmethod to generate a DPoP proof JWT from a public-private key pair.
ConnectApi Namespace
The ConnectApi namespace (Connect in Apex) has new or changed classes, methods, or enums.
Many Connect REST API resource actions are exposed as static methods on Apex classes in the
ConnectApi namespace. These methods use other ConnectApi
classes to input and return information. The ConnectApi namespace is referred
to as Connect in Apex.
For the new and changed ConnectApi classes, methods, and enums, see ConnectApi (Connect in Apex): New and Changed Classes and Enums.
Database Namespace
The Database namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
New Classes
- Provide query options for the SOQL SET OPTIONS clause.
- Use the
Database.QueryOptionsand theDatabase.QueryOptionsBuilderclasses. Use thewithDataspace,withHonorEmptyStrings, andwithExplicitNamespacebuilder methods.
ItSvcAssetDcvr Namespace
The IT Service Asset Discovery (ItSvcAssetDcvr) namespace has these new or changed classes.
System Namespace
The System namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
New Classes
- Get programmatic access to the individual components of a JWE (JSON Web Encryption) compact serialization token.
- These are highlights in the new System.JweToken class. Use the
getAad()method to get the Additional Authenticated Data used to authenticate the ciphertext. Use thegetAlgorithm()method to get the key management algorithm from the JWE protected header. Use thegetCiphertext()method to get the encrypted content (ciphertext). Use thegetEncryptedKey()method to get the encrypted content encryption key (wrapped CEK). Use thegetEncryptionAlgorithm()method to get the content encryption algorithm from the JWE protected header. Use thegetEphemeralPublicKey()method to get the ephemeral public key from the JWE protected header. Use thegetIv()method to get the initialization vector used to decrypt the ciphertext. Use thegetTag()method to get the authentication tag used to verify ciphertext integrity. Use thetoString()method to get a safe, non-sensitive string representation for debugging and logging.
New or Changed Methods in Existing Classes
- New System.Crypto methods enable Elliptic Curve (EC) key management and JSON Web Encryption (ECDH-ES specifically), and extend signing/verification to support EC algorithms.
Limits.getDataCloudCursorRows,Limits.getLimitDataCloudCursorRows,Limits.getDataCloudCursors, andLimits.getLimitDataCloudCursorsare the new methods.
- New System.Crypto methods enable Elliptic Curve (EC) key management and JSON Web Encryption (ECDH-ES specifically), and extend signing/verification to support EC algorithms.
- Use the new
generateKeyPair()method to generate a key pair blob for supported EC-based algorithms. Use the newgetPrivateKey()andgetPublicKey()methods to extract the private or public key from a generated key pair blob. Use the new encrypt() method to build a JWE token via ECDH-ES key agreement. To decrypt an existing JWE token, use the new parseJwe() method to retrieve its algorithm, encryption algorithm, ephemeral public key, and encrypted content encryption key, then use the newdecrypt()method to decrypt the payload using ECDH-ES key agreement. Use the changedsign()andverify()methods to support EC algorithms, including signing with a private key or a certificate name.
SF_Archive Namespace
The SF_Archive namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
New or Changed Methods in Existing Classes
- Mock Archive Apex so you can test your Apex without making a live callout to archived data.
- Use the new
setMock(mock)method in theSF_Archive.ArchiverAccessorclass to register a mock response. Use the newsetBody(jsonBody),setStatusCode(statusCode), andsetErrorMessage(errorMessage)methods in theSF_Archive.ArchiverAccessorResponseclass to define the mock response.