com.qcloud.Common.Sign.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qcloud-java-sdk Show documentation
Show all versions of qcloud-java-sdk Show documentation
Tencent Cloud Open API SDK for Java
Copyright (C) Tencent Cloud
All Rights Reserved.
版权所有 (C)腾讯云
http://www.qcloud.com
The newest version!
???? 4 ?
' E F
G H I
J K L M
N
G O
P
G Q
G R S
T U
V W X
E
Y
Z
[
\
] ^ _ ` a b a c
] d
' Z e
f
g h
i
j k l
m n CONTENT_CHARSET Ljava/lang/String;
ConstantValue HMAC_ALGORITHM ()V Code LineNumberTable sign J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
StackMapTable S o p
Exceptions q r s makeSignPlainText ](Ljava/util/TreeMap;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; Signature ?(Ljava/util/TreeMap;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; buildParamStr1 9(Ljava/util/TreeMap;Ljava/lang/String;)Ljava/lang/String; _(Ljava/util/TreeMap;Ljava/lang/String;)Ljava/lang/String;
buildParamStr t
SourceFile Sign.java , - HmacSHA1 o u v
HmacSHA256 w x javax/crypto/spec/SecretKeySpec com/qcloud/Common/Sign UTF-8 y z { | , } ~ ? ? java/lang/String ? ? ? , ? java/lang/StringBuilder ? ? ? | > ? A ? ? ? ? ? ? ? t ? ? ? ? ? ? POST ? ? ? ? @ ? ? ? ? _ . ? ? java/lang/Object javax/crypto/Mac [B &java/security/NoSuchAlgorithmException $java/io/UnsupportedEncodingException !java/security/InvalidKeyException java/util/Iterator getInstance &(Ljava/lang/String;)Ljavax/crypto/Mac; equals (Ljava/lang/Object;)Z getBytes (Ljava/lang/String;)[B getAlgorithm ()Ljava/lang/String; ([BLjava/lang/String;)V init (Ljava/security/Key;)V doFinal ([B)[B com/qcloud/Utilities/Base64 encode ([B)Ljava/lang/String; (Ljava/lang/String;)V append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString java/util/TreeMap keySet ()Ljava/util/Set;
java/util/Set iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; get &(Ljava/lang/Object;)Ljava/lang/Object; isEmpty substring (II)Ljava/lang/String; length ()I (C)Ljava/lang/StringBuilder; replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; ! ' ( ) * + ) * , - . *? ? / 0 1 . ? {N? :? :,? ? .? Y+? ?
? :? *? ?
:? +? Y+? ?
? :? *? ?
:? Y? ? N-? / 6
% &