public static Signer getSigner(AlibabaCloudCredentials credentials) {if (credentials instanceof KeyPairCredentials) {return SHA256_WITH_RSA_SIGNER;} else if (credentials instanceof BearerTokenCredentials) {return BEARER_TOKEN_SIGNER;} else {return HMACSHA1_SIGNER;}}

public static Signer getSigner ( AlibabaCloudCredentials credentials ) { if ( credentials instanceof KeyPairCredentials ) { return SHA256_WITH_RSA_SIGNER ; } else if ( credentials instanceof BearerTokenCredentials ) { return BEARER_TOKEN_SIGNER ; } else { return HMACSHA1_SIGNER ; } }
public static Signer GetSigner(AlibabaCloudCredentials credentials){if (credentials is BearerTokenCredential){return bearerTokenSigner;}return credentials is KeyPairCredentials ? sha256withRSASigner : hmacSHA1Signer;}
