class ZMSImpl implements Authorizer, KeyStore, ZMSHandler {

    long configuredDueDateMillis(Integer domainDueDateDays, Integer roleDueDateDays) {

        // the role expiry days settings overrides the domain one if one configured

        int expiryDays = 0;
        if (roleDueDateDays != null && roleDueDateDays > 0) {
            expiryDays = roleDueDateDays;
        } else if (domainDueDateDays != null && domainDueDateDays > 0) {
            expiryDays = domainDueDateDays;
        }
        return expiryDays == 0 ? 0 : System.currentTimeMillis() + TimeUnit.MILLISECONDS.convert(expiryDays, TimeUnit.DAYS);
    }

    public  ZMSImpl();

}