13
13
14
14
package com .amazonaws .encryptionsdk .model ;
15
15
16
- import org . apache . commons . codec . binary . Base64 ;
16
+ import com . amazonaws . encryptionsdk . internal . Utils ;
17
17
18
18
public class ByteFormatCheckValues {
19
19
private static final String base64MessageId_ = "NQ/NXvg4mMN5zm5JFZHUWw==" ;
@@ -29,38 +29,38 @@ public class ByteFormatCheckValues {
29
29
private static final String base64FinalFrameHeaderHash_ = "/b2fVFOxvnaM5vXDMGyyFPNTWMjuU/c/48qeH3uTHj0=" ;
30
30
31
31
public static byte [] getMessageId () {
32
- return Base64 . decodeBase64 (base64MessageId_ );
32
+ return Utils . decodeBase64String (base64MessageId_ );
33
33
}
34
34
35
35
public static byte [] getEncryptedKey () {
36
- return Base64 . decodeBase64 (base64EncryptedKey_ );
36
+ return Utils . decodeBase64String (base64EncryptedKey_ );
37
37
}
38
38
39
39
public static byte [] getPlaintextKey () {
40
- return Base64 . decodeBase64 (base64PlaintextKey_ );
40
+ return Utils . decodeBase64String (base64PlaintextKey_ );
41
41
}
42
42
43
43
public static byte [] getCiphertextHeaderHash () {
44
- return Base64 . decodeBase64 (base64CiphertextHeaderHash_ );
44
+ return Utils . decodeBase64String (base64CiphertextHeaderHash_ );
45
45
}
46
46
47
47
public static byte [] getCipherBlockHeaderHash () {
48
- return Base64 . decodeBase64 (base64BlockHeaderHash_ );
48
+ return Utils . decodeBase64String (base64BlockHeaderHash_ );
49
49
}
50
50
51
51
public static byte [] getCipherFrameHeaderHash () {
52
- return Base64 . decodeBase64 (base64FrameHeaderHash_ );
52
+ return Utils . decodeBase64String (base64FrameHeaderHash_ );
53
53
}
54
54
55
55
public static byte [] getCipherFinalFrameHeaderHash () {
56
- return Base64 . decodeBase64 (base64FinalFrameHeaderHash_ );
56
+ return Utils . decodeBase64String (base64FinalFrameHeaderHash_ );
57
57
}
58
58
59
59
public static byte [] getNonce () {
60
- return Base64 . decodeBase64 (base64Nonce_ );
60
+ return Utils . decodeBase64String (base64Nonce_ );
61
61
}
62
62
63
63
public static byte [] getTag () {
64
- return Base64 . decodeBase64 (base64Tag_ );
64
+ return Utils . decodeBase64String (base64Tag_ );
65
65
}
66
66
}
0 commit comments