Module java.security.sasl
Package javax.security.sasl
✗
package javax.security.sasl
Comparing jdk-21-ga and jdk-22+36
Contains class and interfaces for supporting SASL. This package defines classes and interfaces for SASL mechanisms. It is used by developers to add authentication support for connection-based protocols that use SASL.
SASL Overview
Simple Authentication and Security Layer (SASL) specifies a challenge-response protocol in which data is exchanged between the client and the server for the purposes of authentication and (optional) establishment of a security layer on which to carry on subsequent communications. It is used with connection-based protocols such as LDAPv3 or IMAPv4. SASL is described in RFC 2222. There are various mechanisms defined for SASL. Each mechanism defines the data that must be exchanged between the client and server in order for the authentication to succeed. This data exchange required for a particular mechanism is referred to to as its protocol profile . The following are some examples of mechanisms that have been defined by the Internet standards community.- DIGEST-MD5 (RFC 2831). This mechanism defines how HTTP Digest Authentication can be used as a SASL mechanism.
- Anonymous (RFC 2245). This mechanism is anonymous authentication in which no credentials are necessary.
- External (RFC 2222). This mechanism obtains authentication information from an external source (such as TLS or IPsec).
- S/Key (RFC 2222). This mechanism uses the MD4 digest algorithm to exchange data based on a shared secret.
- GSSAPI (RFC 2222). This mechanism uses the GSSAPI for obtaining authentication information.
Usage
Users of this API are typically developers who produce client library implementations for connection-based protocols, such as LDAPv3 and IMAPv4, and developers who write servers (such as LDAP servers and IMAP servers). Developers who write client libraries use theSaslClient
and SaslClientFactory
interfaces. Developers who write servers use the SaslServer
and SaslServerFactory
interfaces. Among these two groups of users, each can be further divided into two groups: those who produce
the SASL mechanisms and those who use
the SASL mechanisms. The producers of SASL mechanisms need to provide implementations for these interfaces, while users of the SASL mechanisms use the APIs in this package to access those implementations. Related Documentation
Please refer to the Moved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=security_guide_sasl.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase22&id=security_guide_sasl.Java SASL Programming GuideMoved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=security_guide_sasl.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase22&id=security_guide_sasl. for information on how to use this API.- Since:
- 1.5
Types
- ✓ AuthenticationException
- ✓ AuthorizeCallback
- ✓ RealmCallback
- ✓ RealmChoiceCallback
- ✗ Sasl
- ✓ SaslClient
- ✓ SaslClientFactory
- ✓ SaslException
- ✓ SaslServer
- ✓ SaslServerFactory
Summary
Elements | Comments | Descriptions | Total | |||||||
---|---|---|---|---|---|---|---|---|---|---|
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
javax.security.sasl | 2 | 2 | ||||||||
Sasl | 2 | 2 | ||||||||
Total | 4 | 4 |