private byte[] getServerKey(final String username) throws UserNotFoundException {
        final String serverKey = AuthFactory.getServerKey(username);
        if (serverKey == null) {
            return null;
        } else {
            return DatatypeConverter.parseBase64Binary( serverKey );
        }
    }
Retrieve the server key from the database for a given username.
xmppserver/src/main/java/org/jivesoftware/openfire/sasl/ScramSha1SaslServer.java