@Singleton public class JWTTokenRequestFormat extends Object implements TokenRequestFormat
| Constructor and Description |
|---|
JWTTokenRequestFormat(com.google.common.base.Function<byte[],byte[]> signer,
org.jclouds.json.Json json) |
| Modifier and Type | Method and Description |
|---|---|
<R extends org.jclouds.http.HttpRequest> |
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.
|
@Inject
public JWTTokenRequestFormat(com.google.common.base.Function<byte[],byte[]> signer,
org.jclouds.json.Json json)
public <R extends org.jclouds.http.HttpRequest> R formatRequest(R request,
TokenRequest tokenRequest)
TokenRequestFormatformatRequest in interface TokenRequestFormatpublic String getTypeName()
TokenRequestFormatgetTypeName in interface TokenRequestFormatpublic Set<String> requiredClaims()
TokenRequestFormatrequiredClaims in interface TokenRequestFormatCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.