|
Openfire 3.7.1 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.openfire.clearspace.ClearspaceSaslServer
public class ClearspaceSaslServer
Implements the CLEARSPACE server-side SASL mechanism.
| Constructor Summary | |
|---|---|
ClearspaceSaslServer()
|
|
| 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 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 ClearspaceSaslServer()
| 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 SaslServerincoming - A non-null byte array containing the encoded bytes
from the client.offset - The starting position at incoming of the bytes to use.len - The number of bytes from incoming to use.
SaslException - if incoming cannot be successfully
unwrapped.
IllegalStateException - if the authentication exchange has
not completed, or if the negotiated quality of protection
has neither integrity nor privacy
public byte[] wrap(byte[] outgoing,
int offset,
int len)
throws SaslException
wrap in interface SaslServeroutgoing - A non-null byte array containing the bytes to encode.offset - The starting position at outgoing of the bytes to use.len - The number of bytes from outgoing to use.
SaslException - if outgoing cannot be successfully
wrapped.
IllegalStateException - if the authentication exchange has
not completed, or if the negotiated quality of protection has
neither integrity nor privacy.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.7.1 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||