Uses of Class
com.ultikits.ultitools.entities.TokenEntity
Packages that use TokenEntity
-
Uses of TokenEntity in com.ultikits.ultitools.utils
Fields in com.ultikits.ultitools.utils declared as TokenEntityModifier and TypeFieldDescriptionprivate TokenEntityCloudSession.predecessorTokenThe nearest ancestor session's last-known token, ornullif either there is no ancestor (this is the first session ever created) or that ancestor never itself held a token.private TokenEntityCloudSession.tokenMethods in com.ultikits.ultitools.utils that return TokenEntityModifier and TypeMethodDescription(package private) TokenEntityCloudSession.getToken()(package private) TokenEntityCloudSession.loadFromDisk()Loads a previously-persisted credential from disk into this session.(package private) TokenEntityTokenStore.parseToken(Map<String, Object> data) Parses thecloud_tokenentry out of an already-read document, ornullif absent, unparseable, or missing an access token.(package private) TokenEntityRefreshes the access token usingrefreshTokenValue, committing the result through this session.Methods in com.ultikits.ultitools.utils with parameters of type TokenEntityModifier and TypeMethodDescription(package private) voidTokenStore.clearIfMatches(TokenEntity expected) Removes the persistedcloud_tokenentry, but ONLY if it still matchesexpected-- i.e.(package private) booleanCloudSession.commit(TokenEntity newToken) Persiststokenthrough this session's ownTokenStore, but only if this session has not been invalidated.private static UltiPanelWebSocketClientPluginInitiationUtils.getPanelWebsocketClient(TokenEntity token) protected static SimpleHttpClient.ResponseHttpRequestUtils.getServerByUUID(String uuid, TokenEntity token) Get server information by UUID from the API server.(package private) static booleanPluginInitiationUtils.loginWithToken(TokenEntity existingToken) Login to UltiPanel using an existing token (from magic-link or saved token).private static booleanTokenStore.matchesAccessToken(Object savedRaw, TokenEntity expected) protected static SimpleHttpClient.ResponseHttpRequestUtils.registerServer(String uuid, String name, int port, String domain, boolean ssl, TokenEntity token) Register a new server with the API server.(package private) voidTokenStore.save(TokenEntity token) Persiststoken, replacing whatevercloud_tokenentry currently exists in the credential document.protected static SimpleHttpClient.ResponseHttpRequestUtils.updateServer(String uuid, int port, String domain, boolean ssl, TokenEntity token) Update an existing server on the API server.Method parameters in com.ultikits.ultitools.utils with type arguments of type TokenEntityModifier and TypeMethodDescriptionprivate voidCloudSession.completeMagicLinkLogin(com.google.gson.JsonObject responseBody, Consumer<TokenEntity> onComplete) Handles a login that just reachedcompleted: persists the credential through this session, then reactivates cloud features -- both steps guard against a logout landing in the middle by checking this samethissession, so the two can never disagree about whether the login is still current.private voidCloudSession.pollLoginStatusOnce(String requestId, Consumer<TokenEntity> onComplete) Check login status once.(package private) voidCloudSession.startPolling(String requestId, Consumer<TokenEntity> onComplete) Starts polling for magic-link auth completion on this session's own executor.