xm
2024-06-14 722af26bc6fec32bb289b1df51a9016a4935610f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
Êþº¾4ä
‚è    é    êì
íî
íï
ðñ
íò
íó
ðô
õö
è÷ø
íù
úû    üý
þ    üÿ
 
 
 
 
    
    
 
 
      

&è
&
$
&
%
í !
0

 
0 !
 
! !"#$
:%
&
'()
>*
+,
>-.
C/
C !01
23
45
67
68
69:
ú; !<=
í>
?
@ !A
BC
BD
íEFG
HI
JK
LMN
_ð    OP
_QR
STè
UV
cW
_X !Y
Z
íû
í[
\]    ^_`    ^abcde    ^fgh    ƒi
^jklmnopqr InnerClasses    configKeyLjava/lang/String;
properties%Lcom/dl/oss/properties/OssProperties;client$Lcom/amazonaws/services/s3/AmazonS3;<init>:(Ljava/lang/String;Lcom/dl/oss/properties/OssProperties;)VCodeLineNumberTableLocalVariableTableendpointConfigEndpointConfigurationELcom/amazonaws/client/builder/AwsClientBuilder$EndpointConfiguration; credentials#Lcom/amazonaws/auth/AWSCredentials;credentialsProvider+Lcom/amazonaws/auth/AWSCredentialsProvider; clientConfig#Lcom/amazonaws/ClientConfiguration;build1Lcom/amazonaws/services/s3/AmazonS3ClientBuilder;eLjava/lang/Exception;thisLcom/dl/oss/core/OssClient; ossProperties StackMapTablepstìuvö createBucket()V
bucketNamecreateBucketRequest5Lcom/amazonaws/services/s3/model/CreateBucketRequest; accessPolicy#Lcom/dl/oss/enumd/AccessPolicyType;uploadH([BLjava/lang/String;Ljava/lang/String;)Lcom/dl/oss/entity/UploadResult;data[Bpath contentType[(Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;)Lcom/dl/oss/entity/UploadResult;metadata0Lcom/amazonaws/services/s3/model/ObjectMetadata;putObjectRequest2Lcom/amazonaws/services/s3/model/PutObjectRequest; inputStreamLjava/io/InputStream;delete(Ljava/lang/String;)V uploadSuffixsuffixgetObjectMetadataD(Ljava/lang/String;)Lcom/amazonaws/services/s3/model/ObjectMetadata;object*Lcom/amazonaws/services/s3/model/S3Object;getObjectContent)(Ljava/lang/String;)Ljava/io/InputStream;getUrl()Ljava/lang/String;domainendpointheadergetPath8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;prefixuuid getConfigKey getPrivateUrl9(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/String;    objectKeysecondLjava/lang/Integer;generatePresignedUrlRequest=Lcom/amazonaws/services/s3/model/GeneratePresignedUrlRequest;urlLjava/net/URL;checkPropertiesSame((Lcom/dl/oss/properties/OssProperties;)ZgetAccessPolicy%()Lcom/dl/oss/enumd/AccessPolicyType;    getPolicyC(Ljava/lang/String;Lcom/dl/oss/enumd/PolicyType;)Ljava/lang/String;
policyTypeLcom/dl/oss/enumd/PolicyType;builderLjava/lang/StringBuilder;
SourceFileOssClient.java ‹« …† ‡ˆwCcom/amazonaws/client/builder/AwsClientBuilder$EndpointConfigurationt xÉ yÉ ‹z&com/amazonaws/auth/BasicAWSCredentials {É |É/com/amazonaws/auth/AWSStaticCredentialsProvider ‹}!com/amazonaws/ClientConfigurationcom/dl/oss/constant/OssConstantY ~És € ‚ƒ „… †ƒ‡ ㈠‰Š/com/amazonaws/services/s3/AmazonS3ClientBuilder ‹Œ Ž  ‘’“ ”• – ™—"com/amazonaws/services/s3/AmazonS3 ‰Š ª«java/lang/Exception!com/dl/oss/exception/OssExceptionjava/lang/StringBuilder%配置错误! è¯·æ£€æŸ¥ç³»ç»Ÿé…ç½®:[ ˜™ šÉ] ›É ‹¿ œÉ ž3com/amazonaws/services/s3/model/CreateBucketRequest ÝÞŸ  ¡ ¢£ ª¤ ¥¦ ßà §z+创建Bucket失败, è¯·æ ¸å¯¹é…ç½®ä¿¡æ¯:[java/io/ByteArrayInputStream ‹¨ ±·© ª«.com/amazonaws/services/s3/model/ObjectMetadata ¬¿­ ®¯ °±0com/amazonaws/services/s3/model/PutObjectRequest ‹² ³´,上传文件失败,请检查配置信息:[µ ã· ÈÉ/¸ Ù¹ º¹ ™» ¼½ ¾z,删除文件失败,请检查配置信息:[ ¿É ÍÎ ±² ÀÁ Âà ÆÄ ÅÉhttps://http:// ÆÇ.È ÉÉÊ ËÉ;com/amazonaws/services/s3/model/GeneratePresignedUrlRequestÌ ÍÎ ÏÐjava/util/DateÑ ÒÓÔ Õ¯ ‹± Ö× ØÙÚ ÝÉ ÛÜ{
"Statement": [
{
"Action": [
Ý Þâ8"s3:GetBucketLocation",
"s3:ListBucketMultipartUploads"
ßâI"s3:GetBucketLocation",
"s3:ListBucket",
"s3:ListBucketMultipartUploads"
"s3:GetBucketLocation"
B],
"Effect": "Allow",
"Principal": "*",
"Resource": "arn:aws:s3:::"
},
àâ_{
"Action": [
"s3:ListBucket"
],
"Effect": "Deny",
"Principal": "*",
"Resource": "arn:aws:s3::: {
"Action":  áâ ã¯a[
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:ListMultipartUploadParts",
"s3:PutObject"
],
q[
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject",
"s3:ListMultipartUploadParts",
"s3:PutObject"
],
"s3:GetObject",
?"Effect": "Allow",
"Principal": "*",
"Resource": "arn:aws:s3:::#/*"
}
],
"Version": "2012-10-17"
}
com/dl/oss/core/OssClientjava/lang/Objectcom/dl/oss/core/OssClient$1java/lang/String#com/dl/oss/properties/OssProperties!com/amazonaws/auth/AWSCredentials)com/amazonaws/auth/AWSCredentialsProvider-com/amazonaws/client/builder/AwsClientBuilder getEndpoint    getRegion'(Ljava/lang/String;Ljava/lang/String;)V getAccessKey getSecretKey&(Lcom/amazonaws/auth/AWSCredentials;)V
getIsHttpsequals(Ljava/lang/Object;)Zcom/amazonaws/ProtocolHTTPSLcom/amazonaws/Protocol; setProtocol(Lcom/amazonaws/Protocol;)VHTTP(com/amazonaws/services/s3/AmazonS3Client3()Lcom/amazonaws/services/s3/AmazonS3ClientBuilder;withEndpointConfigurationv(Lcom/amazonaws/client/builder/AwsClientBuilder$EndpointConfiguration;)Lcom/amazonaws/client/builder/AwsClientBuilder;withClientConfigurationT(Lcom/amazonaws/ClientConfiguration;)Lcom/amazonaws/client/builder/AwsClientBuilder;withCredentials\(Lcom/amazonaws/auth/AWSCredentialsProvider;)Lcom/amazonaws/client/builder/AwsClientBuilder;disableChunkedEncoding-()Lcom/amazonaws/services/s3/AmazonS3Builder; CLOUD_SERVICE[Ljava/lang/String;com/dl/common/utils/StringUtils containsAny4(Ljava/lang/CharSequence;[Ljava/lang/CharSequence;)ZenablePathStyleAccess()Ljava/lang/Object;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;
getMessagetoString getBucketNamedoesBucketExistV2(Ljava/lang/String;)Z!com/dl/oss/enumd/AccessPolicyTypegetAcl;()Lcom/amazonaws/services/s3/model/CannedAccessControlList; setCannedAcl<(Lcom/amazonaws/services/s3/model/CannedAccessControlList;)V_(Lcom/amazonaws/services/s3/model/CreateBucketRequest;)Lcom/amazonaws/services/s3/model/Bucket; getPolicyType()Lcom/dl/oss/enumd/PolicyType;setBucketPolicy([B)Vcn/hutool/core/io/IoUtil    readBytes(Ljava/io/InputStream;)[BsetContentTypejava/io/InputStream    available()IsetContentLength(J)Vl(Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;Lcom/amazonaws/services/s3/model/ObjectMetadata;)V    putObjecte(Lcom/amazonaws/services/s3/model/PutObjectRequest;)Lcom/amazonaws/services/s3/model/PutObjectResult;com/dl/oss/entity/UploadResultUploadResultBuilder6()Lcom/dl/oss/entity/UploadResult$UploadResultBuilder;2com/dl/oss/entity/UploadResult$UploadResultBuilderH(Ljava/lang/String;)Lcom/dl/oss/entity/UploadResult$UploadResultBuilder;filename"()Lcom/dl/oss/entity/UploadResult;replaceD(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; deleteObject    getPrefix    getObjectP(Ljava/lang/String;Ljava/lang/String;)Lcom/amazonaws/services/s3/model/S3Object;(com/amazonaws/services/s3/model/S3Object2()Lcom/amazonaws/services/s3/model/ObjectMetadata;7()Lcom/amazonaws/services/s3/model/S3ObjectInputStream;    getDomain
isNotBlank(Ljava/lang/CharSequence;)Zcn/hutool/core/util/IdUtilfastSimpleUUIDcom/dl/common/utils/DateUtilsdatePathcom/amazonaws/HttpMethodGETLcom/amazonaws/HttpMethod;
withMethodY(Lcom/amazonaws/HttpMethod;)Lcom/amazonaws/services/s3/model/GeneratePresignedUrlRequest;java/lang/SystemcurrentTimeMillis()Jjava/lang/IntegerintValuewithExpirationO(Ljava/util/Date;)Lcom/amazonaws/services/s3/model/GeneratePresignedUrlRequest;generatePresignedUrlM(Lcom/amazonaws/services/s3/model/GeneratePresignedUrlRequest;)Ljava/net/URL; java/net/URL    getByType7(Ljava/lang/String;)Lcom/dl/oss/enumd/AccessPolicyType;com/dl/oss/enumd/PolicyTypeWRITE
READ_WRITEREAD&$SwitchMap$com$dl$oss$enumd$PolicyType[Iordinal!‚…†‡ˆ‰Š‹Œê*·*+µ*,µ»Y*´¶*´¶·N»Y*´¶    *´¶
· :» Y· :»Y·:*´¶¶™²¶§ ²¶¸-¶À¶À¶À¶À:*´¶²¸š    ¶W*¶ À!µ"*¶#§0N-Á%™-¿»%Y»&Y·'(¶)-¶*¶)+¶)¶,·-¿±¹¼$Žj-.    /12$4;5F6O7^8i:q<u=}>…?‹@“A£C©EµG¹M¼H½IÄJÆLéN\    $•’;~“”Fs•–Oj—˜“&™š½,›œꝞꅆꟈ Aÿi¡¢£¤¥¦§ü7¨ÿ¡¢£©ü    ©ú"ª«q*´¶.L*´"+¹/™±»0Y+·1M*¶2N,-¶3¶4*´",¹5W*´"++-¶6¸7¹8§'L»%Y»&Y·'9¶)+¶*¶)+¶)¶,·-¿±L$IL$Ž2 RSTVW$X,Y7ZI]L[M\p^4A¬†*­®$%¯°M#›œqž ü¢ÿ5¡©#±²W*»:Y+·;,-¶<°Ža*ž³´µ†¶†±·S©+Á:š»:Y+¸=·;L»>Y·?:-¶@+¶A…¶B»CY*´¶.,+·D:*¶2¶3¶E*´"¹FW§):»%Y»&Y·'G¶)¶*¶)+¶)¶,·-¿¸H»&Y·'*¶I¶)J¶),¶)¶,¶K,¶L¶M°X[$Ž2 efij"k,l@nLoXr[p]qsH<¸¹@º»]$›œ©ž©¼½©µ†©¶† 
÷G©%¾¿½V+»&Y·'*¶I¶)J¶)¶,N¶OL*´"*´¶.+¹P§'M»%Y»&Y·'Q¶),¶*¶)+¶)¶,·-¿±.1$Žwy.|1z2{U} 2#›œVžVµ† q©#À²[*+**´¶R,¶S-¶T°Ž€*ž³´Á†¶†À·[*+**´¶R,¶S-¶<°Ž„*ž¼½Á†¶†ÂÍz4+»&Y·'*¶I¶)J¶)¶,N¶OL*´"*´¶.+¹UM,¶V°ŽŽ/ 4ž4µ†/ÄÅÆǍz4+»&Y·'*¶I¶)J¶)¶,N¶OL*´"*´¶.+¹UM,¶W°Ž“”/• 4ž4µ†/ÄÅÈɍA¸*´¶XL*´¶M*´¶¶™Y§ZN,²¸™?+¸[™»&Y·'-¶)+¶)¶,°»&Y·'-¶)*´¶.¶)\¶),¶)¶,°+¸[™%»&Y·'-¶)+¶)J¶)*´¶.¶)¶,°»&Y·'-¶),¶)J¶)*´¶.¶)¶,°Ž*
™š›'1ž8ŸK¡m¤t¥–§*¸ž°Ê†¨Ë†'‘̆ ý$¢¢A¢ü$¢!(Í΍ÇT¸]N»&Y·'¸^¶)J¶)-¶)¶,:+¸[™»&Y·'+¶)J¶)¶)¶,:»&Y·'¶),¶)¶,°Ž¬®¯&°@²4TžTφTÁ†PІ5µ†  ý@¢¢Ñɍ/*´°Ž· žÒӍ¥    ?»_Y*´¶.+·`²a¶b»cY¸de,¶g…ia·h¶iN*´"-¹j:¶k°ŽÁÂÃÄ-Å9Ə4?ž?Ԇ?ÕÖ-×Ø9ÙÚÛ܍=    *´+¶l¬Ž͏    ž    ‡ˆÝލ5 *´¶m¸n°Ž֏  ž
ßàwÄ»&Y·'M,o¶)W+²p¦ ,q¶)W§+²r¦ ,s¶)W§
,t¶)W,u¶)W,*¶)W,v¶)W+²w¦,x¶)W,*¶)W,v¶)W,y¶)W²z+¶{.«.$,|¶)W§,}¶)W§
,~¶)W,¶)W,*¶)W,€¶)W,¶,°ŽfÚÛÜÝ Þ'ß1á8ã?äEåLæSçZè`égënìî—ïšñ¡ò¤ô«÷²ø¸ù¿ú Ĭ†Äáâ¼ãä ü å.(        æ焃ë‘62¶