|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.oauth.v2.json.JWTTokenRequestFormat
@Singleton public class JWTTokenRequestFormat
Formats a token request into JWT format namely: - transforms the token request to json - creates the base64 header.claimset portions of the payload. - uses the provided signer function to create a signature - creates the full url encoded payload as described in: https://developers.google.com/accounts/docs/OAuth2ServiceAccount
| Constructor Summary | |
|---|---|
JWTTokenRequestFormat(com.google.common.base.Function<byte[],byte[]> signer,
org.jclouds.json.Json json)
|
|
| Method Summary | ||
|---|---|---|
|
formatRequest(R request,
TokenRequest tokenRequest)
Transforms the provided HttpRequest into a particular token request with a specific format. |
|
String |
getTypeName()
The name of the type of the token request, e.g., "JWT" |
|
Set<String> |
requiredClaims()
The claims that must be present in the token request for it to be valid. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public JWTTokenRequestFormat(com.google.common.base.Function<byte[],byte[]> signer,
org.jclouds.json.Json json)
| Method Detail |
|---|
public <R extends org.jclouds.http.HttpRequest> R formatRequest(R request,
TokenRequest tokenRequest)
TokenRequestFormat
formatRequest in interface TokenRequestFormatpublic String getTypeName()
TokenRequestFormat
getTypeName in interface TokenRequestFormatpublic Set<String> requiredClaims()
TokenRequestFormat
requiredClaims in interface TokenRequestFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||