Package io.lakefs.clients.api.model
Class AuthenticationToken
- java.lang.Object
-
- io.lakefs.clients.api.model.AuthenticationToken
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class AuthenticationToken extends Object
AuthenticationToken
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthenticationToken.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_TOKENstatic StringSERIALIZED_NAME_TOKEN_EXPIRATION
-
Constructor Summary
Constructors Constructor Description AuthenticationToken()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static AuthenticationTokenfromJson(String jsonString)Create an instance of AuthenticationToken given an JSON stringStringgetToken()a JWT token that could be used to authenticate requestsLonggetTokenExpiration()Unix Epoch in secondsinthashCode()voidsetToken(String token)voidsetTokenExpiration(Long tokenExpiration)StringtoJson()Convert an instance of AuthenticationToken to an JSON stringAuthenticationTokentoken(String token)AuthenticationTokentokenExpiration(Long tokenExpiration)StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TOKEN
public static final String SERIALIZED_NAME_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN_EXPIRATION
public static final String SERIALIZED_NAME_TOKEN_EXPIRATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
token
public AuthenticationToken token(String token)
-
getToken
@Nonnull public String getToken()
a JWT token that could be used to authenticate requests- Returns:
- token
-
setToken
public void setToken(String token)
-
tokenExpiration
public AuthenticationToken tokenExpiration(Long tokenExpiration)
-
getTokenExpiration
@Nullable public Long getTokenExpiration()
Unix Epoch in seconds- Returns:
- tokenExpiration
-
setTokenExpiration
public void setTokenExpiration(Long tokenExpiration)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to AuthenticationToken
-
fromJson
public static AuthenticationToken fromJson(String jsonString) throws IOException
Create an instance of AuthenticationToken given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AuthenticationToken
- Throws:
IOException- if the JSON string is invalid with respect to AuthenticationToken
-
toJson
public String toJson()
Convert an instance of AuthenticationToken to an JSON string- Returns:
- JSON string
-
-