Class ECauthToken

java.lang.Object
ecmwf.common.ecaccess.ECauthToken
All Implemented Interfaces:
Serializable

public final class ECauthToken extends Object implements Serializable
ECMWF Product Data Store (OpenECPDS) Project
Since:
2024-07-01
Version:
6.7.7
Author:
Laurent Gougeon - syi@ecmwf.int, ECMWF.
See Also:
  • Field Details

    • COMPLETED

      public static final int COMPLETED
      The Constant COMPLETED.
      See Also:
    • PASSCODE_REQUIRED

      public static final int PASSCODE_REQUIRED
      The Constant PASSCODE_REQUIRED.
      See Also:
    • PIN_REQUIRED

      public static final int PIN_REQUIRED
      The Constant PIN_REQUIRED.
      See Also:
  • Constructor Details

    • ECauthToken

      public ECauthToken(byte[] token, int status)
      Instantiates a new ecauth token.
      Parameters:
      token - the token
      status - the status
    • ECauthToken

      public ECauthToken(String token, int status)
      Instantiates a new ecauth token.
      Parameters:
      token - the token
      status - the status
  • Method Details

    • isComplete

      public boolean isComplete()
      Checks if is complete.
      Returns:
      true, if is complete
    • getStatus

      public int getStatus()
      Gets the status.
      Returns:
      the status
    • getToken

      public byte[] getToken()
      Gets the token.
      Returns:
      the token
    • getTime

      public long getTime()
      Gets the time.
      Returns:
      the time
    • accountIsDisabled

      public boolean accountIsDisabled()
      Account is disabled.
      Returns:
      true, if successful