-
Notifications
You must be signed in to change notification settings - Fork 6
/
enrollment_request.go
39 lines (32 loc) · 1.11 KB
/
enrollment_request.go
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
/*
* Copyright (c) 2019 Entrust Datacard Corporation.
* All rights reserved.
*/
package main
type EnrollmentRequest struct {
ProfileId string `json:"profileId"`
RequiredFormat RequiredFormat `json:"requiredFormat"`
CSR string `json:"csr,omitempty"`
SubjectVariables []SubjectVariable `json:"subjectVariables"`
SubjectAltNames []SubjectAltName `json:"subjectAltNames"`
OptionalCertificateRequestDetails CertificateRequestDetails `json:"optionalCertificateRequestDetails"`
}
type RequiredFormat struct {
Format string `json:"format"`
Protection *Protection `json:"protection"`
}
type SubjectVariable struct {
Type string `json:"type"`
Value string `json:"value"`
}
type Protection struct {
Type string `json:"type"`
Password string `json:"password"`
}
type SubjectAltName struct {
Type string `json:"type"`
Value string `json:"value"`
}
type CertificateRequestDetails struct {
ValidityPeriod string `json:"validityPeriod"`
}