|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 SaslServer
response
- 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 SaslServer
public String getAuthorizationID()
getAuthorizationID
in interface SaslServer
IllegalStateException
- if this authentication session has not completedpublic byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
unwrap
in interface SaslServer
SaslException
- if attempted to use this method.public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
wrap
in interface SaslServer
SaslException
- if attempted to use this method.public Object getNegotiatedProperty(String propName)
getNegotiatedProperty
in interface SaslServer
propName
- the property
IllegalStateException
- if this authentication exchange has not completedpublic void dispose() throws SaslException
dispose
in interface SaslServer
SaslException
- If a problem was encountered while disposing
the resources.
|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |