All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sinch.verification.network.auth.ApplicationAuthorizationMethod.class Maven / Gradle / Ivy

????4)Bcom/sinch/verification/network/auth/ApplicationAuthorizationMethodjava/lang/Object7com/sinch/verification/network/auth/AuthorizationMethod'(Ljava/lang/String;Ljava/lang/String;)V#Lorg/jetbrains/annotations/NotNull;appKey
kotlin/jvm/internal/IntrinsicscheckNotNullParameter'(Ljava/lang/Object;Ljava/lang/String;)V

	appSecret()V
Ljava/lang/String;
		thisDLcom/sinch/verification/network/auth/ApplicationAuthorizationMethod;onPrepareAuthorizationonAuthorize$(Lokhttp3/Request;)Lokhttp3/Request;request!java/time/Instant#now()Ljava/time/Instant;%&
$'toString()Ljava/lang/String;)*
$+now().toString()-checkNotNullExpressionValue/

0Application2java/util/Base644
getDecoder()Ljava/util/Base64$Decoder;67
58java/util/Base64$Decoder:decode(Ljava/lang/String;)[B<=
;>calculateStringToSign7(Lokhttp3/Request;Ljava/lang/String;)Ljava/lang/String;@A
BdecodedAppSecretDencode(([BLjava/lang/String;)Ljava/lang/String;FG
Hokhttp3/RequestJ
newBuilder()Lokhttp3/Request$Builder;LM
KNx-timestampPokhttp3/Request$BuilderR	addHeader?(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;TU
SV
AuthorizationXjava/lang/StringBuilderZ
[append-(Ljava/lang/String;)Ljava/lang/StringBuilder;]^
[_(C)Ljava/lang/StringBuilder;]a
[b
[+build()Lokhttp3/Request;ef
Sg	timestampscheme[BstringToSign	signatureLokhttp3/Request;java/lang/Exceptiono
HmacSHA256qjavax/crypto/MacsgetInstance&(Ljava/lang/String;)Ljavax/crypto/Mac;uv
twjavax/crypto/spec/SecretKeySpecy([BLjava/lang/String;)V{
z|java/security/Key~init(Ljava/security/Key;)V??
t?
getEncoder()Ljava/util/Base64$Encoder;??
5?kotlin/text/Charsets?UTF_8Ljava/nio/charset/Charset;??	??java/lang/String?getBytes(Ljava/nio/charset/Charset;)[B??
??+this as java.lang.String).getBytes(charset)?doFinal([B)[B??
t?java/util/Base64$Encoder?encodeToString([B)Ljava/lang/String;??
??4{
            val sha256…)
            )
        }??
sha256HmacLjavax/crypto/Mac;	secretKey!Ljavax/crypto/spec/SecretKeySpec;eLjava/lang/Exception;keydataContent-Type?header&(Ljava/lang/String;)Ljava/lang/String;??
K?body()Lokhttp3/RequestBody;??
K?okhttp3/RequestBody?contentType()Lokhttp3/MediaType;??
??x-timestamp:?url()Lokhttp3/HttpUrl;??
K?okhttp3/HttpUrl?encodedPath?*
??method?*
K?
getMd5Hash)(Lokhttp3/RequestBody;)Ljava/lang/String;??
?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;]?
[?contentTypeValueLjava/lang/Object;canonicalHeaders
canonicalPathtimestampValuegetUtf8Body??
?java/lang/CharSequence?length()I????MD5?java/security/MessageDigest?1(Ljava/lang/String;)Ljava/security/MessageDigest;u?
??digest??
??"getEncoder().encodeToString(array)?utf8BodymdLjava/security/MessageDigest;array
$this$md5HashLokhttp3/RequestBody;okio/Buffer?
?okio/BufferedSink?writeTo(Lokio/BufferedSink;)V??
??readUtf8?*
??4$i$a$-also-ApplicationAuthorizationMethod$utf8Body$1Iit
Lokio/Buffer;$this$utf8BodyLcom/sinch/verification/network/auth/ApplicationAuthorizationMethod$Companion1(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
	CompanionNLcom/sinch/verification/network/auth/ApplicationAuthorizationMethod$Companion;		
TIMESTAMP_HEADERLkotlin/Metadata;mvkxi0d1??2


??









?? 20:B00¢J02
020HJ02020HJ02
0HJ0HR0X‚¢
??R0X‚¢
??R0*08BX‚¢	R
0*08BX‚¢	¨d29Lcom/sinch/verification/network/auth/AuthorizationMethod;md5HashlibraryDecoderEncoderBuilder!ApplicationAuthorizationMethod.ktRuntimeInvisibleAnnotations
ConstantValueCodeLineNumberTableLocalVariableTable$RuntimeInvisibleParameterAnnotations
StackMapTableInnerClasses
SourceFileRuntimeVisibleAnnotations1		
		 Q	!Y+?,?*?*+?*,??"# 
$
		!+?"# !?r+"??(?,Y.?1M3N?9*???:*+,?C:*E?1?I:+?OQ,?WY?[Y?\-?` ?c*??`:?c?`?d?W?h?"*
"*;!?"E#n$q!#H_i\j"PDk*Hl;7mrr!n	$	FG!?Gr?x:?zY+r?}:?????,????Y??1????Y??1N?:?N-?=@p%?@p??"2()*+,!-0-3,6(@/B0F(#>.??"??B??GG?kG?@A!y+???Y?W+??Y?	???WN?[Y?\??`,?`?d:+????:?[Y?\+?ɶ`
?c*+???Ͷ`
?c-??
?c?`
?c?`?d?%
Y?A"25617:8M9U8]:^8f;h8p<r8#>]??1H?:??yy!ny???!?E*+??M,?ڹ????????N-,????Y??1??:????Y?1?%??@""ABBCE#F1F6G#4??#"??6?kEE????!?"+?????Y??M,N6+-????,???%""LMOPQOQ!O#*	???""?!?Y???&";5	?5	SK	'(v
[IIIII[s[sss
s?ssss?s?s?s?s?s@s!sns?sFs?s?s?sss?ss




© 2015 - 2024 Weber Informatics LLC | Privacy Policy