8
8
import java .util .UUID ;
9
9
10
10
public class TossCertSessionGenerator {
11
- private final static String version = "v1_0.0.9 " ;
11
+ private final static String version = "v1_0.0.10 " ;
12
12
private final static String publicKey = "MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAoVdxG0Qi9pip46Jw9ImSlPVD8+L2mM47ey6EZna7D7utgNdh8Tzkjrm1Yl4h6kPJrhdWvMIJGS51+6dh041IXcJEoUquNblUEqAUXBYwQM8PdfnS12SjlvZrP4q6whBE7IV1SEIBJP0gSK5/8Iu+uld2ctJiU4p8uswL2bCPGWdvVPltxAg6hfAG/ImRUKPRewQsFhkFvqIDCpO6aeaR10q6wwENZltlJeeRnl02VWSneRmPqqypqCxz0Y+yWCYtsA+ngfZmwRMaFkXcWjaWnvSqqV33OAsrQkvuBHWoEEkvQ0P08+h9Fy2+FhY9TeuukQ2CVFz5YyOhp25QtWyQI+IaDKk+hLxJ1APR0c3tmV0ANEIjO6HhJIdu2KQKtgFppvqSrZp2OKtI8EZgVbWuho50xvlaPGzWoMi9HSCb+8ARamlOpesxHH3O0cTRUnft2Zk1FHQb2Pidb2z5onMEnzP2xpTqAIVQyb6nMac9tof5NFxwR/c4pmci+1n8GFJIFN18j2XGad1mNyio/R8LabqnzNwJC6VPnZJz5/pDUIk9yKNOY0KJe64SRiL0a4SNMohtyj6QlA/3SGxaEXb8UHpophv4G9wN1CgfyUamsRqp8zo5qDxBvlaIlfkqJvYPkltj7/23FHDjPi8q8UkSiAeu7IV5FTfB5KsiN8+sGSMCAwEAAQ==" ;
13
13
14
14
private final RSACipher rsaCipher ;
@@ -21,7 +21,7 @@ public TossCertSessionGenerator(String publicKeyString) {
21
21
try {
22
22
this .rsaCipher = new RSACipher (publicKeyString );
23
23
} catch (Exception e ) {
24
- throw new RuntimeException (e . getCause () );
24
+ throw new RuntimeException (e );
25
25
}
26
26
}
27
27
@@ -54,7 +54,7 @@ private TossCertSession generate(AESAlgorithm algorithm, int keyLength, int ivLe
54
54
String encryptedSessionKey = buildEncryptSessionKeyPart (algorithm , secretKey , iv );
55
55
return new TossCertSession (version , id , algorithm , secretKey , iv , encryptedSessionKey );
56
56
} catch (Exception e ) {
57
- throw new RuntimeException (e . getCause () );
57
+ throw new RuntimeException (e );
58
58
}
59
59
}
60
60
@@ -67,7 +67,7 @@ public TossCertSession deserialize(String serializedSessionKey) {
67
67
String encryptedSessionKey = buildEncryptSessionKeyPart (algorithm , secretKey , iv );
68
68
return new TossCertSession (fields [0 ], fields [1 ], algorithm , secretKey , iv , encryptedSessionKey );
69
69
} catch (Exception e ) {
70
- throw new RuntimeException (e . getCause () );
70
+ throw new RuntimeException (e );
71
71
}
72
72
}
73
73
0 commit comments