|
Openfire 3.8.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.openfire.sasl.SaslServerPlainImpl
public class SaslServerPlainImpl
Implements the PLAIN server-side mechanism.
(RFC 4616)
client ----- {authzid, authcid, password} -----> server
Each paramater sent to the server is seperated by a null character The authorization ID (authzid) may be empty.
| Constructor Summary | |
|---|---|
SaslServerPlainImpl(String protocol,
String serverFqdn,
Map props,
CallbackHandler cbh)
|
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes of any system resources or security-sensitive information the SaslServer might be using. |
byte[] |
evaluateResponse(byte[] response)
Evaluates the response data and generates a challenge. |
String |
getAuthorizationID()
Reports the authorization ID in effect for the client of this session. |
String |
getMechanismName()
Returns the IANA-registered mechanism name of this SASL server. |
Object |
getNegotiatedProperty(String propName)
Retrieves the negotiated property. |
boolean |
isComplete()
Determines whether the authentication exchange has completed. |
byte[] |
unwrap(byte[] incoming,
int offset,
int len)
Unwraps a byte array received from the client. |
byte[] |
wrap(byte[] outgoing,
int offset,
int len)
Wraps a byte array to be sent to the client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SaslServerPlainImpl(String protocol,
String serverFqdn,
Map props,
CallbackHandler cbh)
throws SaslException
SaslException| Method Detail |
|---|
public String getMechanismName()
getMechanismName in interface SaslServer
public byte[] evaluateResponse(byte[] response)
throws SaslException
evaluateResponse in interface SaslServerresponse - The non-null (but possibly empty) response sent
by the client.
SaslException - If an error occurred while processing
the response or generating a challenge.public boolean isComplete()
isComplete in interface SaslServerpublic String getAuthorizationID()
getAuthorizationID in interface SaslServerIllegalStateException - if this authentication session has not completed
public byte[] unwrap(byte[] incoming,
int offset,
int len)
throws SaslException
unwrap in interface SaslServerSaslException - if attempted to use this method.
public byte[] wrap(byte[] outgoing,
int offset,
int len)
throws SaslException
wrap in interface SaslServerSaslException - if attempted to use this method.public Object getNegotiatedProperty(String propName)
getNegotiatedProperty in interface SaslServerpropName - the property
IllegalStateException - if this authentication exchange has not completed
public void dispose()
throws SaslException
dispose in interface SaslServerSaslException - If a problem was encountered while disposing
the resources.
|
Openfire 3.8.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||