-
Notifications
You must be signed in to change notification settings - Fork 0
/
key.java
42 lines (39 loc) · 978 Bytes
/
key.java
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
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
class key{
private String encryptString;
private Cipher cipher;
private SecretKey secretKey;
byte[] encryptedData;
private Exception e;
public key(String encryptString, Cipher cipher, SecretKey secretKey, byte[] encryptedData)
{
this.encryptString = encryptString;
this.cipher = cipher;
this.secretKey = secretKey;
this.encryptedData = encryptedData;
}
public key(Exception e)
{
this.e = e;
}
public Cipher getCipher() {
return cipher;
}
public Exception getE() {
return e;
}
public String getEncryptString() {
return encryptString;
}
public byte[] getEncryptedData() {
return encryptedData;
}
public SecretKey getSecretKey() {
return secretKey;
}
}