HyCodeYourTale
interfacepublicPriority 3

IAuthCredentialStore

com.hypixel.hytale.server.core.auth.IAuthCredentialStore

2

Methods

2

Public Methods

0

Fields

0

Constructors

Methods

Public Methods (2)

publicstatic
record OAuthTokens(String accessToken, String refreshToken, Instant accessTokenExpiresAt)
public
boolean isValid()

Source Code

package com.hypixel.hytale.server.core.auth;

import java.time.Instant;
import java.util.UUID;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public interface IAuthCredentialStore {
   void setTokens(@Nonnull IAuthCredentialStore.OAuthTokens var1);

   @Nonnull
   IAuthCredentialStore.OAuthTokens getTokens();

   void setProfile(@Nullable UUID var1);

   @Nullable
   UUID getProfile();

   void clear();

   public static record OAuthTokens(@Nullable String accessToken, @Nullable String refreshToken, @Nullable Instant accessTokenExpiresAt) {
      public boolean isValid() {
         return this.refreshToken != null;
      }
   }
}