class ZMSImpl implements Authorizer, KeyStore, ZMSHandler {

    @Override
    public JWSDomain getJWSDomain(ResourceContext ctx, String domainName) {

        final String caller = ctx.getApiName();

        logPrincipal(ctx);

        validateRequest(ctx.request(), caller);
        validate(domainName, TYPE_DOMAIN_NAME, caller);

        // for consistent handling of all requests, we're going to convert
        // all incoming object values into lower case (e.g. domain, role,
        // policy, service, etc name)

        domainName = domainName.toLowerCase();
        setRequestDomain(ctx, domainName);

        // generate our signed domain object

        JWSDomain jwsDomain = retrieveJWSDomain(domainName);
        if (jwsDomain == null) {
            throw ZMSUtils.notFoundError("Unable to retrieve domain=" + domainName, caller);
        }

        return jwsDomain;
    }

    public  ZMSImpl();

}