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

com.volcengine.auth.ISignerV4 Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
package com.volcengine.auth;

import com.volcengine.model.Credentials;
import com.volcengine.model.RequestParam;
import com.volcengine.model.SignRequest;
import com.volcengine.service.SignableRequest;

/**
 * The interface Signer.
 */
public interface ISignerV4 {

    /**
     * Sign.
     *
     * @param request     the request
     * @param credentials the credentials
     * @throws Exception the exception
     */
    void sign(SignableRequest request, Credentials credentials) throws Exception;

    /**
     * Sign url string.
     *
     * @param request     the request
     * @param credentials the credentials
     * @return the string
     * @throws Exception the exception
     */
    String signUrl(SignableRequest request, Credentials credentials) throws Exception;

    /**
     * Sign by request parameter
     *
     * @param requestParam the request parameter
     * @param credentials  the credentials
     * @return the sign request
     * @throws Exception the exception
     */
    SignRequest getSignRequest(RequestParam requestParam, Credentials credentials) throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy