接口 Signer
-
- 所有已知实现类:
BceV1Signer
public interface SignerA 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.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidsign(InternalRequest request, BceCredentials credentials)Equivalent to sign(request, credentials, SignOptions.DEFAULT).voidsign(InternalRequest request, BceCredentials credentials, SignOptions options)Sign the given request with the given set of credentials.
-
-
-
方法详细资料
-
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.
-
-