public static <T extends OneTimeTokenAccount> T getOneTimeTokenAccount(final RequestContext requestContext, final Class<T> clazz) {
        return requestContext.getFlowScope().get("registeredDevice", clazz);
    }
Gets one time token account.

@param <T>            the type parameter
@param requestContext the request context
@param clazz          the clazz
@return the one time token account
core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/util/MultifactorAuthenticationWebflowUtils.java