class ZMSImpl implements Authorizer, KeyStore, ZMSHandler {

    boolean isValidCORSOrigin(final String origin) {

        // first check for non-empty origin value

        if (origin == null || origin.isEmpty()) {
            return false;
        }

        // check if we have whitelist configured

        if (corsOriginList == null || corsOriginList.isEmpty()) {
            return true;
        }

        return corsOriginList.contains(origin);
    }

    public  ZMSImpl();

}