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 boolean
authenticateSharedSecret
(String digest) Returns true if the supplied digest matches the shared secret value.void
dispose()
byte[]
evaluateResponse
(byte[] response) getNegotiatedProperty
(String propName) static String
Returns the shared secret value, ornull
if shared secret authentication is disabled.boolean
static boolean
Returns true if shared secret authentication is enabled.static void
setSharedSecretAllowed
(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:
getMechanismName
in interfaceSaslServer
-
evaluateResponse
- Specified by:
evaluateResponse
in interfaceSaslServer
- Throws:
SaslException
-
isComplete
public boolean isComplete()- Specified by:
isComplete
in interfaceSaslServer
-
getAuthorizationID
- Specified by:
getAuthorizationID
in interfaceSaslServer
-
unwrap
- Specified by:
unwrap
in interfaceSaslServer
- Throws:
SaslException
-
wrap
- Specified by:
wrap
in interfaceSaslServer
- Throws:
SaslException
-
getNegotiatedProperty
- Specified by:
getNegotiatedProperty
in interfaceSaslServer
-
dispose
- Specified by:
dispose
in interfaceSaslServer
- Throws:
SaslException
-