| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private final String | |
| private byte[] | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private final Random | |
| private final Server | |
| private int | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv | NTLMServer(String
not null mech, String not null for Sasl, ignored in NTLM protocol, String not null for Sasl, can be null in NTLM. If non-null,
might be used as domain if not provided in props serverName, Map<String, ?> can be null props, final 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 SaslServer might be using. |
| public byte[] | evaluateResponse(byte[] response)
Implements javax. Evaluates the response data and generates a challenge. |
| public String | getAuthorizationID()
Implements javax. Reports the authorization ID in effect for the client of this session. |
| public String | getMechanismName()
Implements javax. Returns the IANA-registered mechanism name of this SASL server. |
| public Object | getNegotiatedProperty(String propName)
Implements javax. Retrieves the negotiated property. |
| 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 client. |
| public byte[] | wrap(byte[] outgoing, int offset, int len)
Implements javax. Wraps a byte array to be sent to the client. |
| authzId | back to summary |
|---|---|
| private String authzId | |
| hostname | back to summary |
|---|---|
| private String hostname | |
| mech | back to summary |
|---|---|
| private final String mech | |
| nonce | back to summary |
|---|---|
| private byte[] nonce | |
| 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 | |
| server | back to summary |
|---|---|
| private final Server server | |
| step | back to summary |
|---|---|
| private int step | |
| target | back to summary |
|---|---|
| private String target | |
| NTLMServer | back to summary |
|---|---|
pack-priv NTLMServer(String mech, String protocol, String serverName, Map<String, ?> props, final 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 SaslServer might be using. Invoking this method invalidates the SaslServer instance. This method is idempotent.
| |
| evaluateResponse | back to summary |
|---|---|
| public byte[] evaluateResponse(byte[] response) throws SaslException Implements javax. Doc from javax. Evaluates the response data and generates a challenge.
If a response is received from the client during the authentication
process, this method is called to prepare an appropriate next
challenge to submit to the client. The challenge is null if the
authentication has succeeded and no more challenge data is to be sent
to the client. It is non-null if the authentication must be continued
by sending a challenge to the client, or if the authentication has
succeeded but challenge data needs to be processed by the client.
| |
| getAuthorizationID | back to summary |
|---|---|
| public String getAuthorizationID() Implements javax. Doc from javax. Reports the authorization ID in effect for the client of this session. This method can only be called if isComplete() returns true.
| |
| getMechanismName | back to summary |
|---|---|
| public String getMechanismName() Implements javax. Doc from javax. Returns the IANA-registered mechanism name of this SASL server. (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
| |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() Implements javax. Doc from javax. Determines whether the authentication exchange has completed.
This method is typically called after each invocation of
| |
| 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 client.
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 client.
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.
| |