-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorganization.proto
54 lines (44 loc) · 1.09 KB
/
organization.proto
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
// Version = 1.0
syntax = "proto3";
package identity.proto;
option java_package = "com.psiphiglobal.identity.proto";
option java_multiple_files = true;
option go_package = "identity";
import "common.proto";
message Organization {
string domain_name = 1;
string primary_cert_id = 2;
repeated SignedCertificate active_certs = 3;
repeated SignedCertificate expired_certs = 4;
repeated SignedCertificate blocked_certs = 5;
}
message SignedCertificate {
string id = 1;
CertificateStatus status = 2;
uint64 created_at = 3;
uint64 expired_at = 4;
AutoValidationMechanism auto_validation = 5;
CertificateData data = 6;
Signature self_sign = 7;
repeated Signature validations = 8;
}
enum CertificateStatus {
ACTIVE = 0;
EXPIRED = 1;
BLOCKED = 2;
}
enum AutoValidationMechanism {
UNKNOWN = 0;
NONE = 1;
DNS = 2;
}
message CertificateData {
string domain_name = 1;
OrganizationDetails org_details = 2;
PublicKey public_key = 3;
}
message OrganizationDetails {
string name = 1;
string email = 2;
string country = 3;
}