Class ResourceOwnerPasswordCredentialsGrantResponse
java.lang.Object
africa.absa.inception.oauth2.server.authorization.controller.Response
africa.absa.inception.oauth2.server.authorization.controller.ResourceOwnerPasswordCredentialsGrantResponse
The ResourceOwnerPasswordCredentialsGrantResponse class holds the information for a
Resource Owner Password Credentials Grant response.
- Author:
- Marcus Portmann
-
Constructor Summary
ConstructorsConstructorDescriptionResourceOwnerPasswordCredentialsGrantResponse(String accessToken, int expiresIn, String scope, String refreshToken) Constructs a new ResourceOwnerPasswordCredentialsGrantResponse.ResourceOwnerPasswordCredentialsGrantResponse(String accessToken, long expiresIn) Constructs a new ResourceOwnerPasswordCredentialsGrantResponse.ResourceOwnerPasswordCredentialsGrantResponse(String accessToken, long expiresIn, String refreshToken) Constructs a new ResourceOwnerPasswordCredentialsGrantResponse. -
Method Summary
-
Constructor Details
-
ResourceOwnerPasswordCredentialsGrantResponse
public ResourceOwnerPasswordCredentialsGrantResponse(String accessToken, int expiresIn, String scope, String refreshToken) Constructs a new ResourceOwnerPasswordCredentialsGrantResponse.- Parameters:
accessToken- the access tokenexpiresIn- the access token validity in secondsscope- the access token scoperefreshToken- the refresh token
-
ResourceOwnerPasswordCredentialsGrantResponse
public ResourceOwnerPasswordCredentialsGrantResponse(String accessToken, long expiresIn, String refreshToken) Constructs a new ResourceOwnerPasswordCredentialsGrantResponse.- Parameters:
accessToken- the access tokenexpiresIn- the access token validity in secondsrefreshToken- the refresh token
-
ResourceOwnerPasswordCredentialsGrantResponse
Constructs a new ResourceOwnerPasswordCredentialsGrantResponse.- Parameters:
accessToken- the access tokenexpiresIn- the lifetime in seconds of the access token
-
-
Method Details