All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liveperson.faas.security.JwtSignatureBuilder Maven / Gradle / Ivy

Go to download

Functions client for invoking lambdas via the eventsource gateway (a.k.a Asgard)

There is a newer version: 1.2.3
Show newest version
package com.liveperson.faas.security;

import com.liveperson.faas.csds.CsdsClient;
import com.liveperson.faas.exception.TokenGenerationException;
import com.liveperson.faas.http.RestClient;

public class JwtSignatureBuilder implements AuthSignatureBuilder {

    BearerGenerator bearerGenerator;

    public JwtSignatureBuilder(RestClient client, CsdsClient csdsClient, String accountId,
                               String clientId, String clientSecret) {
        bearerGenerator = new JwtBearerGenerator(client, csdsClient, accountId, clientId,
                clientSecret);
    }

    @Override
    public String getAuthHeader() throws TokenGenerationException {
        return bearerGenerator.retrieveBearerToken();
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy