Package org.jivesoftware.openfire.sasl
Class JiveSharedSecretSaslServer
java.lang.Object
org.jivesoftware.openfire.sasl.JiveSharedSecretSaslServer
- All Implemented Interfaces:
SaslServer
Implementation of a proprietary Jive Software SASL mechanism that is based on a shared secret. Successful
authentication will result in an anonymous authorization.
- Author:
- Guus der Kinderen, guus@goodbytes.nl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanauthenticateSharedSecret(String digest) Returns true if the supplied digest matches the shared secret value.voiddispose()byte[]evaluateResponse(byte[] response) getNegotiatedProperty(String propName) static StringReturns the shared secret value, ornullif shared secret authentication is disabled.booleanstatic booleanReturns true if shared secret authentication is enabled.static voidsetSharedSecretAllowed(boolean sharedSecretAllowed) Sets whether shared secret authentication is enabled.byte[]unwrap(byte[] incoming, int offset, int len) byte[]wrap(byte[] outgoing, int offset, int len)
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
JiveSharedSecretSaslServer
public JiveSharedSecretSaslServer()
-
-
Method Details
-
getMechanismName
- Specified by:
getMechanismNamein interfaceSaslServer
-
evaluateResponse
- Specified by:
evaluateResponsein interfaceSaslServer- Throws:
SaslException
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceSaslServer
-
getAuthorizationID
- Specified by:
getAuthorizationIDin interfaceSaslServer
-
unwrap
- Specified by:
unwrapin interfaceSaslServer- Throws:
SaslException
-
wrap
- Specified by:
wrapin interfaceSaslServer- Throws:
SaslException
-
getNegotiatedProperty
- Specified by:
getNegotiatedPropertyin interfaceSaslServer
-
dispose
- Specified by:
disposein interfaceSaslServer- Throws:
SaslException
-