public static boolean authenticateSharedSecret( String digest )
    {
        if ( !isSharedSecretAllowed() )
        {
            return false;
        }

        return StringUtils.hash( getSharedSecret() ).equals( digest );
    }
Returns true if the supplied digest matches the shared secret value. The digest must be an MD5 hash of the secret
key, encoded as hex. This value is supplied by clients attempting shared secret authentication.

@param digest the MD5 hash of the secret key, encoded as hex.
@return true if authentication succeeds.
xmppserver/src/main/java/org/jivesoftware/openfire/sasl/JiveSharedSecretSaslServer.java