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 SaslClient
SaslException
- If an error occurred while creating
the initial response.public byte[] evaluateChallenge(byte[] challenge) throws SaslException
evaluateChallenge
in interface SaslClient
challenge
- 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 SaslClient
public boolean isComplete()
isComplete
in interface SaslClient
true
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 SaslClient
is
- 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 SaslClient
os
- 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.