接口 Signer

  • 所有已知实现类:
    BceV1Signer

    public interface Signer
    A strategy for applying cryptographic signatures to a request, proving that the request was made by someone in possession of the given set of credentials without transmitting the secret key over the wire.
    • 方法详细资料

      • sign

        void sign​(InternalRequest request,
                  BceCredentials credentials)
        Equivalent to sign(request, credentials, SignOptions.DEFAULT).
        参数:
        request - the request to sign.
        credentials - the credentials to sign the request with.
        抛出:
        NullPointerException - if any parameter is null.
      • sign

        void sign​(InternalRequest request,
                  BceCredentials credentials,
                  SignOptions options)
        Sign the given request with the given set of credentials. Modifies the passed-in request to apply the signature.
        参数:
        request - the request to sign.
        credentials - the credentials to sign the request with.
        options - the options for signing.
        抛出:
        NullPointerException - if any parameter is null.