public class SaslExternal extends java.lang.Object implements SaslClient
| Constructor and Description |
|---|
SaslExternal()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createInitialResponse()
Retrieves the initial response.
|
byte[] |
evaluateChallenge(byte[] challenge)
Evaluates the challenge data and generates a response.
|
java.io.InputStream |
getInputStream(java.io.InputStream is)
Retrieves an input stream for the session.
|
java.lang.String |
getMechanismName()
Returns the name of mechanism driver.
|
java.io.OutputStream |
getOutputStream(java.io.OutputStream os)
Retrieves an output stream for the session.
|
boolean |
isComplete()
The method may be called at any time to determine if the authentication
process is finished.
|
public byte[] createInitialResponse()
throws SaslException
createInitialResponse in interface SaslClientSaslException - If an error occurred while creating
the initial response.public byte[] evaluateChallenge(byte[] challenge)
throws SaslException
evaluateChallenge in interface SaslClientchallenge - The non-null challenge sent from the server.SaslException - If an error occurred while processing
the challenge or generating a response.public java.lang.String getMechanismName()
getMechanismName in interface SaslClientpublic boolean isComplete()
isComplete in interface SaslClienttrue if authentication is complete. For this class,
always returns true.public java.io.InputStream getInputStream(java.io.InputStream is)
throws java.io.IOException
getInputStream in interface SaslClientis - The original input stream for reading from the server.java.io.IOException - If the authentication exchange has not completed
or an error occurred while getting the stream.public java.io.OutputStream getOutputStream(java.io.OutputStream os)
throws java.io.IOException
getOutputStream in interface SaslClientos - The original output stream for writing to the server.java.io.IOException - If the authentication exchange has not completed
or an error occurred while getting the stream.