1
2
3
4
5
6
7 package identity
8
9 import (
10 timestamp "github.com/golang/protobuf/ptypes/timestamp"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 reflect "reflect"
14 sync "sync"
15 )
16
17 const (
18
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 )
23
24 type CertifyRequest struct {
25 state protoimpl.MessageState
26 sizeCache protoimpl.SizeCache
27 unknownFields protoimpl.UnknownFields
28
29 Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
30
31
32
33
34 Token []byte `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
35
36 CertificateSigningRequest []byte `protobuf:"bytes,3,opt,name=certificate_signing_request,json=certificateSigningRequest,proto3" json:"certificate_signing_request,omitempty"`
37 }
38
39 func (x *CertifyRequest) Reset() {
40 *x = CertifyRequest{}
41 if protoimpl.UnsafeEnabled {
42 mi := &file_identity_proto_msgTypes[0]
43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
44 ms.StoreMessageInfo(mi)
45 }
46 }
47
48 func (x *CertifyRequest) String() string {
49 return protoimpl.X.MessageStringOf(x)
50 }
51
52 func (*CertifyRequest) ProtoMessage() {}
53
54 func (x *CertifyRequest) ProtoReflect() protoreflect.Message {
55 mi := &file_identity_proto_msgTypes[0]
56 if protoimpl.UnsafeEnabled && x != nil {
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 if ms.LoadMessageInfo() == nil {
59 ms.StoreMessageInfo(mi)
60 }
61 return ms
62 }
63 return mi.MessageOf(x)
64 }
65
66
67 func (*CertifyRequest) Descriptor() ([]byte, []int) {
68 return file_identity_proto_rawDescGZIP(), []int{0}
69 }
70
71 func (x *CertifyRequest) GetIdentity() string {
72 if x != nil {
73 return x.Identity
74 }
75 return ""
76 }
77
78 func (x *CertifyRequest) GetToken() []byte {
79 if x != nil {
80 return x.Token
81 }
82 return nil
83 }
84
85 func (x *CertifyRequest) GetCertificateSigningRequest() []byte {
86 if x != nil {
87 return x.CertificateSigningRequest
88 }
89 return nil
90 }
91
92 type CertifyResponse struct {
93 state protoimpl.MessageState
94 sizeCache protoimpl.SizeCache
95 unknownFields protoimpl.UnknownFields
96
97
98 LeafCertificate []byte `protobuf:"bytes,1,opt,name=leaf_certificate,json=leafCertificate,proto3" json:"leaf_certificate,omitempty"`
99
100
101 IntermediateCertificates [][]byte `protobuf:"bytes,2,rep,name=intermediate_certificates,json=intermediateCertificates,proto3" json:"intermediate_certificates,omitempty"`
102 ValidUntil *timestamp.Timestamp `protobuf:"bytes,3,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"`
103 }
104
105 func (x *CertifyResponse) Reset() {
106 *x = CertifyResponse{}
107 if protoimpl.UnsafeEnabled {
108 mi := &file_identity_proto_msgTypes[1]
109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
110 ms.StoreMessageInfo(mi)
111 }
112 }
113
114 func (x *CertifyResponse) String() string {
115 return protoimpl.X.MessageStringOf(x)
116 }
117
118 func (*CertifyResponse) ProtoMessage() {}
119
120 func (x *CertifyResponse) ProtoReflect() protoreflect.Message {
121 mi := &file_identity_proto_msgTypes[1]
122 if protoimpl.UnsafeEnabled && x != nil {
123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
124 if ms.LoadMessageInfo() == nil {
125 ms.StoreMessageInfo(mi)
126 }
127 return ms
128 }
129 return mi.MessageOf(x)
130 }
131
132
133 func (*CertifyResponse) Descriptor() ([]byte, []int) {
134 return file_identity_proto_rawDescGZIP(), []int{1}
135 }
136
137 func (x *CertifyResponse) GetLeafCertificate() []byte {
138 if x != nil {
139 return x.LeafCertificate
140 }
141 return nil
142 }
143
144 func (x *CertifyResponse) GetIntermediateCertificates() [][]byte {
145 if x != nil {
146 return x.IntermediateCertificates
147 }
148 return nil
149 }
150
151 func (x *CertifyResponse) GetValidUntil() *timestamp.Timestamp {
152 if x != nil {
153 return x.ValidUntil
154 }
155 return nil
156 }
157
158 var File_identity_proto protoreflect.FileDescriptor
159
160 var file_identity_proto_rawDesc = []byte{
161 0x0a, 0x0e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
162 0x12, 0x19, 0x69, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f,
163 0x78, 0x79, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x29, 0x67, 0x6f, 0x6f,
164 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
165 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
166 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x0e, 0x43, 0x65, 0x72, 0x74, 0x69,
167 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65,
168 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65,
169 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
170 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x3e, 0x0a, 0x1b, 0x63,
171 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x69,
172 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
173 0x52, 0x19, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x53, 0x69, 0x67,
174 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x0f,
175 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
176 0x29, 0x0a, 0x10, 0x6c, 0x65, 0x61, 0x66, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,
177 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x6c, 0x65, 0x61, 0x66, 0x43,
178 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x19, 0x69, 0x6e,
179 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69,
180 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x18, 0x69,
181 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69,
182 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x69, 0x64,
183 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
184 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
185 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x55,
186 0x6e, 0x74, 0x69, 0x6c, 0x32, 0x6e, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
187 0x12, 0x62, 0x0a, 0x07, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x79, 0x12, 0x29, 0x2e, 0x69, 0x6f,
188 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x69,
189 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x79, 0x52,
190 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x69, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x6b,
191 0x65, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
192 0x74, 0x79, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
193 0x73, 0x65, 0x22, 0x00, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
194 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65,
195 0x72, 0x64, 0x32, 0x2d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f,
196 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
197 0x33,
198 }
199
200 var (
201 file_identity_proto_rawDescOnce sync.Once
202 file_identity_proto_rawDescData = file_identity_proto_rawDesc
203 )
204
205 func file_identity_proto_rawDescGZIP() []byte {
206 file_identity_proto_rawDescOnce.Do(func() {
207 file_identity_proto_rawDescData = protoimpl.X.CompressGZIP(file_identity_proto_rawDescData)
208 })
209 return file_identity_proto_rawDescData
210 }
211
212 var file_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
213 var file_identity_proto_goTypes = []interface{}{
214 (*CertifyRequest)(nil),
215 (*CertifyResponse)(nil),
216 (*timestamp.Timestamp)(nil),
217 }
218 var file_identity_proto_depIdxs = []int32{
219 2,
220 0,
221 1,
222 2,
223 1,
224 1,
225 1,
226 0,
227 }
228
229 func init() { file_identity_proto_init() }
230 func file_identity_proto_init() {
231 if File_identity_proto != nil {
232 return
233 }
234 if !protoimpl.UnsafeEnabled {
235 file_identity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
236 switch v := v.(*CertifyRequest); i {
237 case 0:
238 return &v.state
239 case 1:
240 return &v.sizeCache
241 case 2:
242 return &v.unknownFields
243 default:
244 return nil
245 }
246 }
247 file_identity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
248 switch v := v.(*CertifyResponse); i {
249 case 0:
250 return &v.state
251 case 1:
252 return &v.sizeCache
253 case 2:
254 return &v.unknownFields
255 default:
256 return nil
257 }
258 }
259 }
260 type x struct{}
261 out := protoimpl.TypeBuilder{
262 File: protoimpl.DescBuilder{
263 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
264 RawDescriptor: file_identity_proto_rawDesc,
265 NumEnums: 0,
266 NumMessages: 2,
267 NumExtensions: 0,
268 NumServices: 1,
269 },
270 GoTypes: file_identity_proto_goTypes,
271 DependencyIndexes: file_identity_proto_depIdxs,
272 MessageInfos: file_identity_proto_msgTypes,
273 }.Build()
274 File_identity_proto = out.File
275 file_identity_proto_rawDesc = nil
276 file_identity_proto_goTypes = nil
277 file_identity_proto_depIdxs = nil
278 }
279
View as plain text