class ZTSImpl implements KeyStore, ZTSHandler {

    int getServiceCertRequestExpiryTime(int certExpiryTime, Integer reqExpiryTime) {

        if (reqExpiryTime == null || reqExpiryTime < 0) {
            return certExpiryTime;
        }

        // we already verified that reqExpiryTime is not negative
        // so if we certExpiryTime is 0, we'll just return that value

        if (certExpiryTime == 0) {
            return reqExpiryTime;
        } else {
            return reqExpiryTime < certExpiryTime ? reqExpiryTime : certExpiryTime;
        }
    }

    public  ZTSImpl();
    public  ZTSImpl(CloudStore implCloudStore, DataStore implDataStore);

}