Class ECauthToken
java.lang.Object
ecmwf.common.ecaccess.ECauthToken
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe Constant COMPLETED.static final intThe Constant PASSCODE_REQUIRED.static final intThe Constant PIN_REQUIRED. -
Constructor Summary
ConstructorsConstructorDescriptionECauthToken(byte[] token, int status) Instantiates a new ecauth token.ECauthToken(String token, int status) Instantiates a new ecauth token. -
Method Summary
-
Field Details
-
COMPLETED
public static final int COMPLETEDThe Constant COMPLETED.- See Also:
-
PASSCODE_REQUIRED
public static final int PASSCODE_REQUIREDThe Constant PASSCODE_REQUIRED.- See Also:
-
PIN_REQUIRED
public static final int PIN_REQUIREDThe Constant PIN_REQUIRED.- See Also:
-
-
Constructor Details
-
ECauthToken
public ECauthToken(byte[] token, int status) Instantiates a new ecauth token.- Parameters:
token- the tokenstatus- the status
-
ECauthToken
Instantiates a new ecauth token.- Parameters:
token- the tokenstatus- 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
-