Class ResourceOwnerPasswordCredentialsGrantResponse
- java.lang.Object
-
- africa.absa.inception.oauth2.server.authorization.controller.Response
-
- africa.absa.inception.oauth2.server.authorization.controller.ResourceOwnerPasswordCredentialsGrantResponse
-
public class ResourceOwnerPasswordCredentialsGrantResponse extends Response
The ResourceOwnerPasswordCredentialsGrantResponse class holds the information for a Resource Owner Password Credentials Grant response.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description ResourceOwnerPasswordCredentialsGrantResponse(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBody()Returns the body for the OAuth2 response.
-
-
-
Constructor Detail
-
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
public ResourceOwnerPasswordCredentialsGrantResponse(String accessToken, long expiresIn)
Constructs a new ResourceOwnerPasswordCredentialsGrantResponse.- Parameters:
accessToken- the access tokenexpiresIn- the lifetime in seconds of the access token
-
-