| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
47
|
212
|
1612
-
1630
|
Apply
|
java.security.SecureRandom.<init>
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
new java.security.SecureRandom()
|
|
50
|
84
|
1731
-
1750
|
Literal
|
<nosymbol>
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
"AES/GCM/NoPadding"
|
|
51
|
31
|
1787
-
1790
|
Literal
|
<nosymbol>
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
128
|
|
52
|
230
|
1816
-
1818
|
Literal
|
<nosymbol>
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
16
|
|
56
|
119
|
1945
-
1979
|
Select
|
org.make.api.technical.security.SecurityConfiguration.aesSecretKey
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
DefaultAESEncryptionComponent.this.securityConfiguration.aesSecretKey
|
|
56
|
312
|
1923
-
1980
|
Apply
|
org.make.api.technical.Base64Encoding.decode
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
org.make.api.technical.Base64Encoding.decode(DefaultAESEncryptionComponent.this.securityConfiguration.aesSecretKey)
|
|
57
|
187
|
2018
-
2047
|
Apply
|
javax.crypto.spec.SecretKeySpec.<init>
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
new javax.crypto.spec.SecretKeySpec(key, "AES")
|
|
59
|
137
|
2093
-
2182
|
Apply
|
grizzled.slf4j.Logger.error
|
|
DefaultAESEncryptionComponent.this.logger.error("Cannot decode aes secret key. Key might contain an invalid Base64 format.")
|
|
60
|
12
|
2193
-
2208
|
Throw
|
<nosymbol>
|
|
throw exception
|
|
65
|
85
|
2318
-
2357
|
Apply
|
javax.crypto.Cipher.getInstance
|
org.make.api.technical.security.aesencryptiontest
|
javax.crypto.Cipher.getInstance(DefaultAESEncryption.this.EncryptionAlgorithm)
|
|
65
|
225
|
2337
-
2356
|
Select
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.EncryptionAlgorithm
|
org.make.api.technical.security.aesencryptiontest
|
DefaultAESEncryption.this.EncryptionAlgorithm
|
|
66
|
26
|
2373
-
2380
|
Apply
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.newIV
|
org.make.api.technical.security.aesencryptiontest
|
DefaultAESEncryption.this.newIV()
|
|
67
|
198
|
2431
-
2469
|
Apply
|
javax.crypto.spec.GCMParameterSpec.<init>
|
org.make.api.technical.security.aesencryptiontest
|
new javax.crypto.spec.GCMParameterSpec(DefaultAESEncryption.this.TagLengthBit, iv)
|
|
67
|
243
|
2399
-
2418
|
Literal
|
<nosymbol>
|
org.make.api.technical.security.aesencryptiontest
|
1
|
|
67
|
129
|
2387
-
2470
|
Apply
|
javax.crypto.Cipher.init
|
org.make.api.technical.security.aesencryptiontest
|
cipher.init(1, DefaultAESEncryption.this.secretKey, new javax.crypto.spec.GCMParameterSpec(DefaultAESEncryption.this.TagLengthBit, iv))
|
|
67
|
120
|
2420
-
2429
|
Select
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.secretKey
|
org.make.api.technical.security.aesencryptiontest
|
DefaultAESEncryption.this.secretKey
|
|
67
|
323
|
2452
-
2464
|
Select
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.TagLengthBit
|
org.make.api.technical.security.aesencryptiontest
|
DefaultAESEncryption.this.TagLengthBit
|
|
68
|
7
|
2497
-
2518
|
Apply
|
javax.crypto.Cipher.doFinal
|
org.make.api.technical.security.aesencryptiontest
|
cipher.doFinal(token)
|
|
69
|
226
|
2525
-
2613
|
Apply
|
java.nio.ByteBuffer.array
|
org.make.api.technical.security.aesencryptiontest
|
java.nio.ByteBuffer.allocate(iv.length.+(encryptedText.length)).put(iv).put(encryptedText).array()
|
|
73
|
100
|
2707
-
2729
|
Apply
|
java.nio.ByteBuffer.wrap
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
java.nio.ByteBuffer.wrap(token)
|
|
74
|
244
|
2745
-
2770
|
ApplyToImplicitArgs
|
scala.Array.ofDim
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
scala.Array.ofDim[Byte](DefaultAESEncryption.this.IvSize)((ClassTag.Byte: scala.reflect.ClassTag[Byte]))
|
|
74
|
301
|
2763
-
2769
|
Select
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.IvSize
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
DefaultAESEncryption.this.IvSize
|
|
75
|
113
|
2777
-
2791
|
Apply
|
java.nio.ByteBuffer.get
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
buffer.get(iv)
|
|
76
|
193
|
2818
-
2855
|
ApplyToImplicitArgs
|
scala.Array.ofDim
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
scala.Array.ofDim[Byte](buffer.remaining())((ClassTag.Byte: scala.reflect.ClassTag[Byte]))
|
|
76
|
326
|
2836
-
2854
|
Apply
|
java.nio.Buffer.remaining
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
buffer.remaining()
|
|
77
|
131
|
2862
-
2887
|
Apply
|
java.nio.ByteBuffer.get
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
buffer.get(encryptedText)
|
|
78
|
218
|
2915
-
2954
|
Apply
|
javax.crypto.Cipher.getInstance
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
javax.crypto.Cipher.getInstance(DefaultAESEncryption.this.EncryptionAlgorithm)
|
|
78
|
9
|
2934
-
2953
|
Select
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.EncryptionAlgorithm
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
DefaultAESEncryption.this.EncryptionAlgorithm
|
|
79
|
229
|
3026
-
3038
|
Select
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.TagLengthBit
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
DefaultAESEncryption.this.TagLengthBit
|
|
79
|
303
|
2994
-
3003
|
Select
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.secretKey
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
DefaultAESEncryption.this.secretKey
|
|
79
|
114
|
3005
-
3043
|
Apply
|
javax.crypto.spec.GCMParameterSpec.<init>
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
new javax.crypto.spec.GCMParameterSpec(DefaultAESEncryption.this.TagLengthBit, iv)
|
|
79
|
90
|
2973
-
2992
|
Literal
|
<nosymbol>
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
2
|
|
79
|
317
|
2961
-
3044
|
Apply
|
javax.crypto.Cipher.init
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
cipher.init(2, DefaultAESEncryption.this.secretKey, new javax.crypto.spec.GCMParameterSpec(DefaultAESEncryption.this.TagLengthBit, iv))
|
|
80
|
194
|
3051
-
3080
|
Apply
|
javax.crypto.Cipher.doFinal
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
cipher.doFinal(encryptedText)
|
|
84
|
132
|
3166
-
3172
|
Select
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.IvSize
|
org.make.api.technical.security.aesencryptiontest
|
DefaultAESEncryption.this.IvSize
|
|
84
|
3
|
3148
-
3173
|
ApplyToImplicitArgs
|
scala.Array.ofDim
|
org.make.api.technical.security.aesencryptiontest
|
scala.Array.ofDim[Byte](DefaultAESEncryption.this.IvSize)((ClassTag.Byte: scala.reflect.ClassTag[Byte]))
|
|
85
|
219
|
3180
-
3204
|
Apply
|
java.security.SecureRandom.nextBytes
|
org.make.api.technical.security.aesencryptiontest
|
DefaultAESEncryptionComponent.this.random.nextBytes(buffer)
|
|
90
|
98
|
3341
-
3363
|
Select
|
java.nio.charset.StandardCharsets.UTF_8
|
org.make.api.technical.security.aesencryptiontest
|
java.nio.charset.StandardCharsets.UTF_8
|
|
90
|
298
|
3326
-
3364
|
Apply
|
java.lang.String.getBytes
|
org.make.api.technical.security.aesencryptiontest
|
token.getBytes(java.nio.charset.StandardCharsets.UTF_8)
|
|
90
|
231
|
3313
-
3365
|
Apply
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.encryptToken
|
org.make.api.technical.security.aesencryptiontest
|
DefaultAESEncryption.this.encryptToken(token.getBytes(java.nio.charset.StandardCharsets.UTF_8))
|
|
91
|
107
|
3372
-
3409
|
Apply
|
org.make.api.technical.Base64Encoding.encode
|
org.make.api.technical.security.aesencryptiontest
|
org.make.api.technical.Base64Encoding.encode(encryptedToken)
|
|
97
|
322
|
3567
-
3593
|
Apply
|
org.make.api.technical.security.DefaultAESEncryptionComponent.DefaultAESEncryption.decryptToken
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
DefaultAESEncryption.this.decryptToken(tokenDecoded)
|
|
97
|
4
|
3489
-
3619
|
Apply
|
scala.util.Try.map
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
org.make.api.technical.Base64Encoding.decode(token).map[String](((tokenDecoded: Array[Byte]) => new scala.Predef.String(DefaultAESEncryption.this.decryptToken(tokenDecoded), java.nio.charset.StandardCharsets.UTF_8)))
|
|
97
|
72
|
3556
-
3618
|
Apply
|
java.lang.String.<init>
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
new scala.Predef.String(DefaultAESEncryption.this.decryptToken(tokenDecoded), java.nio.charset.StandardCharsets.UTF_8)
|
|
97
|
188
|
3595
-
3617
|
Select
|
java.nio.charset.StandardCharsets.UTF_8
|
org.make.api.technical.security.aesencryptiontest,org.make.api.demographics.demographicscardservicetest
|
java.nio.charset.StandardCharsets.UTF_8
|