Package com.confidentify.client.model
Class AuthRequest
- java.lang.Object
-
- com.confidentify.client.model.AuthRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-04-14T23:27:48.571228600+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_PASSWORDstatic 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 integer specifying the number of seconds that the returned token should be valid for.StringgetPassword()Get passwordList<String>getServiceGrants()An optional array of service names to grant access to.StringgetUsername()Get usernameinthashCode()AuthRequestpassword(String password)AuthRequestserviceGrants(List<String> serviceGrants)voidsetExpireAfterSeconds(Integer expireAfterSeconds)voidsetPassword(String password)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_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)
-
setUsername
public void setUsername(String username)
-
password
public AuthRequest password(String password)
-
setPassword
public void setPassword(String password)
-
expireAfterSeconds
public AuthRequest expireAfterSeconds(Integer expireAfterSeconds)
-
getExpireAfterSeconds
@Nullable public Integer getExpireAfterSeconds()
Optional integer 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
-
-