public Integer getPeriod() throws GuacamoleException {

        // Do not reveal code period unless enrollment is in progress
        if (key == null)
            return null;

        return confService.getPeriod();

    }
Returns the number of seconds that each TOTP code remains valid. If the
user's key is not being exposed to facilitate enrollment, this value will
not be exposed either.

@return
    The number of seconds that each TOTP code remains valid, or null if
    the user's key is not being exposed to facilitate enrollment.

@throws GuacamoleException
    If the period cannot be read from guacamole.properties.
extensions/guacamole-auth-totp/src/main/java/org/apache/guacamole/auth/totp/form/AuthenticationCodeField.java