|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.sasl.mechanisms.SaslExternal
This class provides the implementation of the EXTERNAL mechanism driver. This mechanism is passed in the SASL External bind request to retrieve the current result code from the server.
Constructor Summary | |
---|---|
SaslExternal()
Default constructor |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SaslExternal()
Method Detail |
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
java.io.IOException
- If the authentication exchange has not completed
or an error occurred while getting the stream.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |