Class LWAAuthorizationSigner


  • public class LWAAuthorizationSigner
    extends java.lang.Object
    LWA Authorization Signer
    • 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