-
Notifications
You must be signed in to change notification settings - Fork 12
/
certificatedetails.go
46 lines (30 loc) · 1.5 KB
/
certificatedetails.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
40
41
42
43
44
45
46
package platformclientv2
import (
"time"
"encoding/json"
"strconv"
"strings"
)
// Certificatedetails - Represents the details of a parsed certificate.
type Certificatedetails struct {
// Issuer - Information about the issuer of the certificate. The value of this property is a comma separated key=value format. Each key is one of the attribute names supported by X.500.
Issuer *string `json:"issuer,omitempty"`
// Subject - Information about the subject of the certificate. The value of this property is a comma separated key=value format. Each key is one of the attribute names supported by X.500.
Subject *string `json:"subject,omitempty"`
// ExpirationDate - The expiration date of the certificate. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
ExpirationDate *time.Time `json:"expirationDate,omitempty"`
// IssueDate - The issue date of the certificate. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
IssueDate *time.Time `json:"issueDate,omitempty"`
// Expired - True if the certificate is expired, false otherwise.
Expired *bool `json:"expired,omitempty"`
// SignatureValid
SignatureValid *bool `json:"signatureValid,omitempty"`
// Valid
Valid *bool `json:"valid,omitempty"`
}
// String returns a JSON representation of the model
func (o *Certificatedetails) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}