blob: e5f38e10880e325bbaee5400aaefd9835838c46a (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
package org.dogtagpki.server.tps.channel;
import org.dogtagpki.tps.main.TPSBuffer;
public class PlatformAndSecChannelProtoInfo {
private String platform ;
private byte protocol;
private TPSBuffer oidCardRecognitionData;
private TPSBuffer oidCardManagementTypeAndVer;
private TPSBuffer oidCardIdentificationScheme;
private TPSBuffer keysetInfoData;
private byte implementation;
public PlatformAndSecChannelProtoInfo(String platform, byte protocol, byte implementation) {
// TODO Auto-generated constructor stub
this.platform = platform;
this.protocol = protocol;
this.implementation = implementation;
}
public PlatformAndSecChannelProtoInfo() {
setPlatform(SecureChannel.GP201);
setProtocol(SecureChannel.SECURE_PROTO_01);
setImplementation((byte)0);
}
public String getPlatform() {
return platform;
}
public void setPlatform(String platform) {
this.platform = platform;
}
public byte getProtocol() {
return protocol;
}
public boolean isGP201() {
if(SecureChannel.GP201.equals(platform)) {
return true;
}
return false;
}
public boolean isGP211() {
if(SecureChannel.GP211.equals(platform)) {
return true;
} else {
return false;
}
}
public boolean isSCP01() {
if(protocol == SecureChannel.SECURE_PROTO_01) {
return true;
}
return false;
}
public boolean isSCP02() {
if(protocol == SecureChannel.SECURE_PROTO_02) {
return true;
}
return false;
}
public void setProtocol(byte protocol) {
this.protocol = protocol;
}
public void setOidCardRecognitionData(TPSBuffer oidCardRecognitionData) {
// TODO Auto-generated method stub
this.oidCardRecognitionData = oidCardRecognitionData;
}
public TPSBuffer getOidCardRecognitionData() {
return oidCardRecognitionData;
}
public void setOidCardManagementTypeAndVer(TPSBuffer oidCardManagementTypeAndVer) {
// TODO Auto-generated method stub
this.oidCardManagementTypeAndVer = oidCardManagementTypeAndVer;
}
public TPSBuffer getOidCardManagementTypeAndVer() {
return oidCardManagementTypeAndVer;
}
public void setOidCardIdentificationScheme(TPSBuffer oidCardIdentificationScheme) {
this.oidCardIdentificationScheme = oidCardIdentificationScheme;
}
public TPSBuffer getOidCardIdentificationScheme() {
return oidCardIdentificationScheme;
}
public void setImplementation(byte implementation) {
this.implementation = implementation;
}
public byte getImplementation() {
return implementation;
}
public TPSBuffer getKeysetInfoData() {
return keysetInfoData;
}
public void setKeysetInfoData(TPSBuffer keysetInfoData) {
this.keysetInfoData = keysetInfoData;
}
}
|