class ZMSImpl implements Authorizer, KeyStore, ZMSHandler {

    Timestamp getUserAuthorityExpiry(final String userName, final String expiryAttrValue, final String caller) {

        final String userAuthorityExpiry = getUserAuthorityExpiryAttr(expiryAttrValue);
        if (userAuthorityExpiry == null) {
            return null;
        }

        // if we don't get an expiry then we're going to throw an exception
        // since based on our config we must have an expiry specified

        Date expiry = userAuthority.getDateAttribute(userName, userAuthorityExpiry);
        if (expiry == null) {
            throw ZMSUtils.requestError("User does not have required user authority expiry configured", caller);
        }

        return Timestamp.fromDate(expiry);
    }

    public  ZMSImpl();

}