Package com.google.auth.oauth2
Class StsTokenExchangeRequest
java.lang.Object
com.google.auth.oauth2.StsTokenExchangeRequest
Defines an OAuth 2.0 token exchange request. Based on
https://tools.ietf.org/html/rfc8693#section-2.1.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
StsTokenExchangeRequest
(String subjectToken, String subjectTokenType, ActingParty actingParty, List<String> scopes, String resource, String audience, String requestedTokenType, String internalOptions) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
newBuilder
(String subjectToken, String subjectTokenType)
-
Field Details
-
GRANT_TYPE
- See Also:
-
subjectToken
-
subjectTokenType
-
actingParty
-
scopes
-
resource
-
audience
-
requestedTokenType
-
internalOptions
-
-
Constructor Details
-
StsTokenExchangeRequest
-
-
Method Details
-
newBuilder
public static StsTokenExchangeRequest.Builder newBuilder(String subjectToken, String subjectTokenType) -
getGrantType
-
getSubjectToken
-
getSubjectTokenType
-
getResource
-
getAudience
-
getRequestedTokenType
-
getScopes
-
getActingParty
-
getInternalOptions
-
hasResource
public boolean hasResource() -
hasAudience
public boolean hasAudience() -
hasRequestedTokenType
public boolean hasRequestedTokenType() -
hasScopes
public boolean hasScopes() -
hasActingParty
public boolean hasActingParty()
-