public class OSSUtils
extends java.lang.Object
限定符 | 构造器和说明 |
---|---|
private |
OSSUtils() |
限定符和类型 | 方法和说明 |
---|---|
static byte[] |
computeSignature(java.lang.String stringToSign,
byte[] signingKey) |
static java.lang.String |
generatePostPolicy(java.time.Instant expiration,
PolicyConditions conds) |
static byte[] |
newSigningKey(java.lang.String secretAccessKey,
java.lang.String dateStamp,
java.lang.String regionName) |
private static byte[] |
sign(byte[] data,
byte[] key,
software.amazon.awssdk.auth.signer.internal.SigningAlgorithm algorithm) |
private static byte[] |
sign(java.lang.String stringData,
byte[] key,
software.amazon.awssdk.auth.signer.internal.SigningAlgorithm algorithm) |
public static java.lang.String generatePostPolicy(java.time.Instant expiration, PolicyConditions conds)
public static byte[] computeSignature(java.lang.String stringToSign, byte[] signingKey) throws java.security.InvalidKeyException
java.security.InvalidKeyException
public static byte[] newSigningKey(java.lang.String secretAccessKey, java.lang.String dateStamp, java.lang.String regionName) throws java.security.InvalidKeyException
java.security.InvalidKeyException
private static byte[] sign(java.lang.String stringData, byte[] key, software.amazon.awssdk.auth.signer.internal.SigningAlgorithm algorithm) throws java.security.InvalidKeyException
java.security.InvalidKeyException
private static byte[] sign(byte[] data, byte[] key, software.amazon.awssdk.auth.signer.internal.SigningAlgorithm algorithm) throws java.security.InvalidKeyException
java.security.InvalidKeyException