Index
A
AuthenticationException - Exception in javax.security.sasl
This exception is thrown by a SASL mechanism implementation
to indicate that the SASL
exchange has failed due to reasons related to authentication, such as
an invalid identity, passphrase, or key.
AuthenticationException() -
Constructor for exception javax.security.sasl.AuthenticationException
Constructs a new instance of
AuthenticationException
.
AuthenticationException(String) -
Constructor for exception javax.security.sasl.AuthenticationException
Constructs a new instance of
AuthenticationException
with a detailed message.
AuthenticationException(String, Throwable) -
Constructor for exception javax.security.sasl.AuthenticationException
Constructs a new instance of
AuthenticationException
with a detailed message
and a root exception.
AuthorizeCallback - Class in javax.security.sasl
This callback is used by
SaslServer
to determine whether
one entity (identified by an authenticated authentication id)
can act on
behalf of another entity (identified by an authorization id).
AuthorizeCallback(String, String) -
Constructor for class javax.security.sasl.AuthorizeCallback
Constructs an instance of
AuthorizeCallback
.
C
createSaslClient(String[], String, String, String, Map<String, ?>, CallbackHandler) -
Static method in class javax.security.sasl.Sasl
Creates a
SaslClient
using the parameters supplied.
createSaslClient(String[], String, String, String, Map<String, ?>, CallbackHandler) -
Method in interface javax.security.sasl.SaslClientFactory
Creates a SaslClient using the parameters supplied.
createSaslServer(String, String, String, Map<String, ?>, CallbackHandler) -
Static method in class javax.security.sasl.Sasl
Creates a
SaslServer
for the specified mechanism.
createSaslServer(String, String, String, Map<String, ?>, CallbackHandler) -
Method in interface javax.security.sasl.SaslServerFactory
Creates a
SaslServer
using the parameters supplied.
CREDENTIALS -
Static variable in class javax.security.sasl.Sasl
The name of a property that specifies the credentials to use.
D
dispose() -
Method in interface javax.security.sasl.SaslClient
Disposes of any system resources or security-sensitive information
the SaslClient might be using.
dispose() -
Method in interface javax.security.sasl.SaslServer
Disposes of any system resources or security-sensitive information
the SaslServer might be using.
E
evaluateChallenge(byte[]) -
Method in interface javax.security.sasl.SaslClient
Evaluates the challenge data and generates a response.
evaluateResponse(byte[]) -
Method in interface javax.security.sasl.SaslServer
Evaluates the response data and generates a challenge.
G
getAuthenticationID() -
Method in class javax.security.sasl.AuthorizeCallback
Returns the authentication id to check.
getAuthorizationID() -
Method in class javax.security.sasl.AuthorizeCallback
Returns the authorization id to check.
getAuthorizationID() -
Method in interface javax.security.sasl.SaslServer
Reports the authorization ID in effect for the client of this
session.
getAuthorizedID() -
Method in class javax.security.sasl.AuthorizeCallback
Returns the id of the authorized user.
getCause() -
Method in exception javax.security.sasl.SaslException
getMechanismName() -
Method in interface javax.security.sasl.SaslClient
Returns the IANA-registered mechanism name of this SASL client.
getMechanismName() -
Method in interface javax.security.sasl.SaslServer
Returns the IANA-registered mechanism name of this SASL server.
getMechanismNames(Map<String, ?>) -
Method in interface javax.security.sasl.SaslClientFactory
Returns an array of names of mechanisms that match the specified
mechanism selection policies.
getMechanismNames(Map<String, ?>) -
Method in interface javax.security.sasl.SaslServerFactory
Returns an array of names of mechanisms that match the specified
mechanism selection policies.
getNegotiatedProperty(String) -
Method in interface javax.security.sasl.SaslClient
Retrieves the negotiated property.
getNegotiatedProperty(String) -
Method in interface javax.security.sasl.SaslServer
Retrieves the negotiated property.
getSaslClientFactories() -
Static method in class javax.security.sasl.Sasl
Gets an enumeration of known factories for producing
SaslClient
.
getSaslServerFactories() -
Static method in class javax.security.sasl.Sasl
Gets an enumeration of known factories for producing
SaslServer
.
H
hasInitialResponse() -
Method in interface javax.security.sasl.SaslClient
Determines whether this mechanism has an optional initial response.
I
initCause(Throwable) -
Method in exception javax.security.sasl.SaslException
isAuthorized() -
Method in class javax.security.sasl.AuthorizeCallback
Determines whether the authentication id is allowed to
act on behalf of the authorization id.
isComplete() -
Method in interface javax.security.sasl.SaslClient
Determines whether the authentication exchange has completed.
isComplete() -
Method in interface javax.security.sasl.SaslServer
Determines whether the authentication exchange has completed.
J
javax.security.sasl - package javax.security.sasl
Contains class and interfaces for supporting SASL.
M
MAX_BUFFER -
Static variable in class javax.security.sasl.Sasl
The name of a property that specifies the maximum size of the receive
buffer in bytes of
SaslClient
/SaslServer
.
P
POLICY_FORWARD_SECRECY -
Static variable in class javax.security.sasl.Sasl
The name of a property that specifies whether mechanisms that implement
forward secrecy between sessions are required.
POLICY_NOACTIVE -
Static variable in class javax.security.sasl.Sasl
The name of a property that specifies whether
mechanisms susceptible to active (non-dictionary) attacks
are not permitted.
POLICY_NOANONYMOUS -
Static variable in class javax.security.sasl.Sasl
The name of a property that specifies whether mechanisms that accept
anonymous login are not permitted.
POLICY_NODICTIONARY -
Static variable in class javax.security.sasl.Sasl
The name of a property that specifies whether
mechanisms susceptible to passive dictionary attacks are not permitted.
POLICY_NOPLAINTEXT -
Static variable in class javax.security.sasl.Sasl
The name of a property that specifies
whether mechanisms susceptible to simple plain passive attacks (e.g.,
"PLAIN") are not permitted.
POLICY_PASS_CREDENTIALS -
Static variable in class javax.security.sasl.Sasl
The name of a property that specifies whether
mechanisms that pass client credentials are required.
Q
The name of a property that specifies the quality-of-protection to use.
R
RAW_SEND_SIZE -
Static variable in class javax.security.sasl.Sasl
The name of a property that specifies the maximum size of the raw send
buffer in bytes of
SaslClient
/SaslServer
.
RealmCallback - Class in javax.security.sasl
This callback is used by
SaslClient
and SaslServer
to retrieve realm information.
RealmCallback(String) -
Constructor for class javax.security.sasl.RealmCallback
Constructs a
RealmCallback
with a prompt.
RealmCallback(String, String) -
Constructor for class javax.security.sasl.RealmCallback
Constructs a
RealmCallback
with a prompt and default
realm information.
RealmChoiceCallback - Class in javax.security.sasl
This callback is used by
SaslClient
and SaslServer
to obtain a realm given a list of realm choices.
RealmChoiceCallback(String, String[], int, boolean) -
Constructor for class javax.security.sasl.RealmChoiceCallback
Constructs a
RealmChoiceCallback
with a prompt, a list of
choices and a default choice.
The name of a property that specifies whether to reuse previously
authenticated session information.
S
Sasl - Class in javax.security.sasl
A static class for creating SASL clients and servers.
SaslClient - Interface in javax.security.sasl
Performs SASL authentication as a client.
SaslClientFactory - Interface in javax.security.sasl
An interface for creating instances of
SaslClient
.
SaslException - Exception in javax.security.sasl
This class represents an error that has occurred when using SASL.
SaslException() -
Constructor for exception javax.security.sasl.SaslException
Constructs a new instance of
SaslException
.
SaslException(String) -
Constructor for exception javax.security.sasl.SaslException
Constructs a new instance of
SaslException
with a detailed message.
SaslException(String, Throwable) -
Constructor for exception javax.security.sasl.SaslException
Constructs a new instance of
SaslException
with a detailed message
and a root exception.
SaslServer - Interface in javax.security.sasl
Performs SASL authentication as a server.
SaslServerFactory - Interface in javax.security.sasl
An interface for creating instances of
SaslServer
.
SERVER_AUTH -
Static variable in class javax.security.sasl.Sasl
The name of a property that specifies whether the
server must authenticate to the client.
setAuthorized(boolean) -
Method in class javax.security.sasl.AuthorizeCallback
Sets whether the authorization is allowed.
setAuthorizedID(String) -
Method in class javax.security.sasl.AuthorizeCallback
Sets the id of the authorized entity.
The name of a property that specifies the cipher strength to use.
T
toString() -
Method in exception javax.security.sasl.SaslException
Returns the string representation of this exception.
U
unwrap(byte[], int, int) -
Method in interface javax.security.sasl.SaslClient
Unwraps a byte array received from the server.
unwrap(byte[], int, int) -
Method in interface javax.security.sasl.SaslServer
Unwraps a byte array received from the client.
W
wrap(byte[], int, int) -
Method in interface javax.security.sasl.SaslClient
Wraps a byte array to be sent to the server.
wrap(byte[], int, int) -
Method in interface javax.security.sasl.SaslServer
Wraps a byte array to be sent to the client.