Package com.amazon.SellingPartnerAPIAA
Class LWAAuthorizationSigner
- java.lang.Object
-
- com.amazon.SellingPartnerAPIAA.LWAAuthorizationSigner
-
public class LWAAuthorizationSigner extends java.lang.Object
LWA Authorization Signer
-
-
Constructor Summary
Constructors Constructor Description LWAAuthorizationSigner(LWAAuthorizationCredentials lwaAuthorizationCredentials)
LWAAuthorizationSigner(LWAAuthorizationCredentials lwaAuthorizationCredentials, LWAAccessTokenCache lwaAccessTokenCache)
Overloaded Constructor @param lwaAuthorizationCredentials LWA Authorization Credentials for token exchange and LWAAccessTokenCache
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Request
sign(okhttp3.Request originalRequest)
Signs a Request with an LWA Access Token
-
-
-
Constructor Detail
-
LWAAuthorizationSigner
public LWAAuthorizationSigner(LWAAuthorizationCredentials lwaAuthorizationCredentials)
- Parameters:
lwaAuthorizationCredentials
- LWA Authorization Credentials for token exchange
-
LWAAuthorizationSigner
public LWAAuthorizationSigner(LWAAuthorizationCredentials lwaAuthorizationCredentials, LWAAccessTokenCache lwaAccessTokenCache)
Overloaded Constructor @param lwaAuthorizationCredentials LWA Authorization Credentials for token exchange and LWAAccessTokenCache
-
-
Method Detail
-
sign
public okhttp3.Request sign(okhttp3.Request originalRequest) throws LWAException
Signs a Request with an LWA Access Token- Parameters:
originalRequest
- Request to sign (treated as immutable)- Returns:
- Copy of originalRequest with LWA signature
- Throws:
LWAException
- If calls to fetch LWA access token fails
-
-