| Modifier and Type | Field and Description |
|---|---|
| private final Client | |
| private final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private final Random | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | NTLMClient(String
non-null mech, String authzid, String non-null for Sasl, useless for NTLM protocol, String non-null for Sasl, but can be null for NTLM serverName, Map<String, ?> can be null props, CallbackHandler can be null for Sasl, already null-checked in factory cbh)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements javax. Disposes of any system resources or security-sensitive information the SaslClient might be using. |
| public byte[] | evaluateChallenge(byte[] challenge)
Implements javax. Evaluates the challenge data and generates a response. |
| public String | getMechanismName()
Implements javax. Returns the IANA-registered mechanism name of this SASL client. |
| public Object | getNegotiatedProperty(String propName)
Implements javax. Retrieves the negotiated property. |
| public boolean | hasInitialResponse()
Implements javax. Determines whether this mechanism has an optional initial response. |
| public boolean | isComplete()
Implements javax. Determines whether the authentication exchange has completed. |
| public byte[] | unwrap(byte[] incoming, int offset, int len)
Implements javax. Unwraps a byte array received from the server. |
| public byte[] | wrap(byte[] outgoing, int offset, int len)
Implements javax. Wraps a byte array to be sent to the server. |
| client | back to summary |
|---|---|
| private final Client client | |
| mech | back to summary |
|---|---|
| private final String mech | |
| NTLM_DOMAIN | back to summary |
|---|---|
| private static final String NTLM_DOMAIN | |
| NTLM_HOSTNAME | back to summary |
|---|---|
| private static final String NTLM_HOSTNAME | |
| NTLM_RANDOM | back to summary |
|---|---|
| private static final String NTLM_RANDOM | |
| NTLM_VERSION | back to summary |
|---|---|
| private static final String NTLM_VERSION | |
| random | back to summary |
|---|---|
| private final Random random | |
| step | back to summary |
|---|---|
| private int step | |
| NTLMClient | back to summary |
|---|---|
| pack-priv NTLMClient(String mech, String authzid, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException | |
| dispose | back to summary |
|---|---|
| public void dispose() throws SaslException Implements javax. Doc from javax. Disposes of any system resources or security-sensitive information the SaslClient might be using. Invoking this method invalidates the SaslClient instance. This method is idempotent.
| |
| evaluateChallenge | back to summary |
|---|---|
| public byte[] evaluateChallenge(byte[] challenge) throws SaslException Implements javax. Doc from javax. Evaluates the challenge data and generates a response. If a challenge is received from the server during the authentication process, this method is called to prepare an appropriate next response to submit to the server.
| |
| getMechanismName | back to summary |
|---|---|
| public String getMechanismName() Implements javax. Doc from javax. Returns the IANA-registered mechanism name of this SASL client. (e.g. "CRAM-MD5", "GSSAPI").
| |
| getNegotiatedProperty | back to summary |
|---|---|
| public Object getNegotiatedProperty(String propName) Implements javax. Doc from javax. Retrieves the negotiated property.
This method can be called only after the authentication exchange has
completed (i.e., when
The
| |
| hasInitialResponse | back to summary |
|---|---|
| public boolean hasInitialResponse() Implements javax. Doc from javax. Determines whether this mechanism has an optional initial response.
If true, caller should call
| |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() Implements javax. Doc from javax. Determines whether the authentication exchange has completed. This method may be called at any time, but typically, it will not be called until the caller has received indication from the server (in a protocol-specific manner) that the exchange has completed.
| |
| unwrap | back to summary |
|---|---|
| public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException Implements javax. Doc from javax. Unwraps a byte array received from the server.
This method can be called only after the authentication exchange has
completed (i.e., when
| |
| wrap | back to summary |
|---|---|
| public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException Implements javax. Doc from javax. Wraps a byte array to be sent to the server.
This method can be called only after the authentication exchange has
completed (i.e., when
The result of this method will make up the contents of the SASL buffer
as defined in RFC 2222 without the leading four octet field that
represents the length.
| |