Sasl (Java SE 16 & JDK 16) (original) (raw)


public class Sasl extends Object

A static class for creating SASL clients and servers.

This class defines the policy of how to locate, load, and instantiate SASL clients and servers.

For example, an application or library gets a SASL client by doing something like:

SaslClient sc = Sasl.createSaslClient(mechanisms, authorizationId, protocol, serverName, props, callbackHandler);

It can then proceed to use the instance to create an authentication connection.

Similarly, a server gets a SASL server by using code that looks as follows:

SaslServer ss = Sasl.createSaslServer(mechanism, protocol, serverName, props, callbackHandler);

Since:

1.5

Fields
The name of a property that specifies the bound server name for an unbound server.
The name of a property that specifies the credentials to use.
The name of a property that specifies the maximum size of the receive buffer in bytes of SaslClient/SaslServer.
The name of a property that specifies whether mechanisms that implement forward secrecy between sessions are required.
The name of a property that specifies whether mechanisms susceptible to active (non-dictionary) attacks are not permitted.
The name of a property that specifies whether mechanisms that accept anonymous login are not permitted.
The name of a property that specifies whether mechanisms susceptible to passive dictionary attacks are not permitted.
The name of a property that specifies whether mechanisms susceptible to simple plain passive attacks (e.g., "PLAIN") are not permitted.
The name of a property that specifies whether mechanisms that pass client credentials are required.
The name of a property that specifies the quality-of-protection to use.
The name of a property that specifies the maximum size of the raw send buffer in bytes of SaslClient/SaslServer.
The name of a property that specifies whether to reuse previously authenticated session information.
The name of a property that specifies whether the server must authenticate to the client.
The name of a property that specifies the cipher strength to use.

Creates a SaslClient using the parameters supplied.
Creates a SaslServer for the specified mechanism.
Gets an enumeration of known factories for producing SaslClient.
Gets an enumeration of known factories for producing SaslServer.

Methods declared in class java.lang.Object

[clone](../../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../../java.base/java/lang/Object.html#wait%28long,int%29)