Package com.confidentify.client.model
Class AuthRequest
- java.lang.Object
-
- com.confidentify.client.model.AuthRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-06-18T21:51:17.428661900+02:00[Europe/Paris]") public class AuthRequest extends Object
AuthRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_EXPIRE_AFTER_SECONDSstatic StringSERIALIZED_NAME_GOOGLE_ACCESS_TOKENstatic StringSERIALIZED_NAME_PASSWORDstatic StringSERIALIZED_NAME_REFRESH_TOKENstatic StringSERIALIZED_NAME_SERVICE_GRANTSstatic StringSERIALIZED_NAME_USERNAME
-
Constructor Summary
Constructors Constructor Description AuthRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthRequestaddServiceGrantsItem(String serviceGrantsItem)booleanequals(Object o)AuthRequestexpireAfterSeconds(Integer expireAfterSeconds)IntegergetExpireAfterSeconds()Optional property specifying the number of seconds that the returned token should be valid for.StringgetGoogleAccessToken()Access token issued by Google to use for authentication.StringgetPassword()Password to use for authentication.StringgetRefreshToken()A previously issued `refresh_token` value to provide for authentication.List<String>getServiceGrants()An optional array of service names to grant access to.StringgetUsername()The username of the user, usually an email address.AuthRequestgoogleAccessToken(String googleAccessToken)inthashCode()AuthRequestpassword(String password)AuthRequestrefreshToken(String refreshToken)AuthRequestserviceGrants(List<String> serviceGrants)voidsetExpireAfterSeconds(Integer expireAfterSeconds)voidsetGoogleAccessToken(String googleAccessToken)voidsetPassword(String password)voidsetRefreshToken(String refreshToken)voidsetServiceGrants(List<String> serviceGrants)voidsetUsername(String username)StringtoString()AuthRequestusername(String username)
-
-
-
Field Detail
-
SERIALIZED_NAME_USERNAME
public static final String SERIALIZED_NAME_USERNAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PASSWORD
public static final String SERIALIZED_NAME_PASSWORD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFRESH_TOKEN
public static final String SERIALIZED_NAME_REFRESH_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GOOGLE_ACCESS_TOKEN
public static final String SERIALIZED_NAME_GOOGLE_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRE_AFTER_SECONDS
public static final String SERIALIZED_NAME_EXPIRE_AFTER_SECONDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SERVICE_GRANTS
public static final String SERIALIZED_NAME_SERVICE_GRANTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
username
public AuthRequest username(String username)
-
getUsername
@Nullable public String getUsername()
The username of the user, usually an email address.- Returns:
- username
-
setUsername
public void setUsername(String username)
-
password
public AuthRequest password(String password)
-
getPassword
@Nullable public String getPassword()
Password to use for authentication.- Returns:
- password
-
setPassword
public void setPassword(String password)
-
refreshToken
public AuthRequest refreshToken(String refreshToken)
-
getRefreshToken
@Nullable public String getRefreshToken()
A previously issued `refresh_token` value to provide for authentication.- Returns:
- refreshToken
-
setRefreshToken
public void setRefreshToken(String refreshToken)
-
googleAccessToken
public AuthRequest googleAccessToken(String googleAccessToken)
-
getGoogleAccessToken
@Nullable public String getGoogleAccessToken()
Access token issued by Google to use for authentication.- Returns:
- googleAccessToken
-
setGoogleAccessToken
public void setGoogleAccessToken(String googleAccessToken)
-
expireAfterSeconds
public AuthRequest expireAfterSeconds(Integer expireAfterSeconds)
-
getExpireAfterSeconds
@Nullable public Integer getExpireAfterSeconds()
Optional property specifying the number of seconds that the returned token should be valid for. minimum: 60 maximum: 1200- Returns:
- expireAfterSeconds
-
setExpireAfterSeconds
public void setExpireAfterSeconds(Integer expireAfterSeconds)
-
serviceGrants
public AuthRequest serviceGrants(List<String> serviceGrants)
-
addServiceGrantsItem
public AuthRequest addServiceGrantsItem(String serviceGrantsItem)
-
getServiceGrants
@Nullable public List<String> getServiceGrants()
An optional array of service names to grant access to. Use this to generate access tokens with limited capabilities.- Returns:
- serviceGrants
-
-