| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private boolean | |
| private byte[] | |
| private static byte |
| Access | Constructor and Description |
|---|---|
| pack-priv | PlainClient(String
A possibly null string representing the principal
for which authorization is being granted; if null, same as
authenticationID authorizationID, String A non-null string representing the principal
being authenticated. pw is associated with this principal. authenticationID, byte[] A non-null byte[] containing the password. pw)Creates a SASL mechanism with client credentials that it needs to participate in Plain authentication exchange with the server. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | dispose()
Implements javax. Disposes of any system resources or security-sensitive information the SaslClient might be using. |
| public byte[] | Returns: A non-null byte array containing the response to be sent to the server.Ignored challengeData)Implements javax. Retrieves the initial response for the SASL command, which for PLAIN is the concatenation of authorization ID, authentication ID and password, with each component separated by the US-ASCII <NUL> byte. |
| protected void | finalize()
Overrides java. Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
| public String | Returns: The string "PLAIN".Implements javax. Retrieves this mechanism's name for to initiate the PLAIN protocol exchange. |
| public Object | Returns: value of property; only QOP is applicable to PLAIN.Implements javax. Retrieves the negotiated property. |
| public boolean | hasInitialResponse()
Implements javax. Determines whether this mechanism has an optional initial response. |
| public boolean | Returns: true if has completed; false otherwise;Implements javax. Determines whether this mechanism has completed. |
| public byte[] | unwrap(byte[] incoming, int offset, int len)
Implements javax. Unwraps the incoming buffer. |
| public byte[] | wrap(byte[] outgoing, int offset, int len)
Implements javax. Wraps the outgoing buffer. |
| authenticationID | back to summary |
|---|---|
| private String authenticationID | |
| authorizationID | back to summary |
|---|---|
| private String authorizationID | |
| completed | back to summary |
|---|---|
| private boolean completed | |
| pw | back to summary |
|---|---|
| private byte[] pw | |
| SEP | back to summary |
|---|---|
| private static byte SEP | |
| PlainClient | back to summary |
|---|---|
| pack-priv PlainClient(String authorizationID, String authenticationID, byte[] pw) throws SaslException Creates a SASL mechanism with client credentials that it needs to participate in Plain authentication exchange with the server.
| |
| clearPassword | back to summary |
|---|---|
| private void clearPassword() | |
| 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[] challengeData) Implements javax. Retrieves the initial response for the SASL command, which for PLAIN is the concatenation of authorization ID, authentication ID and password, with each component separated by the US-ASCII <NUL> byte.
| |
| finalize | back to summary |
|---|---|
| protected void finalize() Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the
| |
| getMechanismName | back to summary |
|---|---|
| public String getMechanismName() Implements javax. Retrieves this mechanism's name for to initiate the PLAIN protocol exchange.
| |
| getNegotiatedProperty | back to summary |
|---|---|
| public Object getNegotiatedProperty(String propName) Implements javax. Retrieves the negotiated property.
This method can be called only after the authentication exchange has
completed (i.e., when
| |
| 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. Determines whether this mechanism has completed. Plain completes after returning one response.
| |
| unwrap | back to summary |
|---|---|
| public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException Implements javax. Unwraps the incoming buffer.
| |
| wrap | back to summary |
|---|---|
| public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException Implements javax. Wraps the outgoing buffer.
| |