Documentation
¶
Index ¶
- Constants
- func GetCertFormat(crtContent []byte) (certFormat, error)
- type NCA
- type PSD2QcType
- type ParsedCert
- func (c *ParsedCert) CertificateResponse() (*models.CertificateResponse, error)
- func (c *ParsedCert) CompanyId() string
- func (c *ParsedCert) Expired() bool
- func (c *ParsedCert) IsSandbox() bool
- func (c *ParsedCert) NCA() (*NCA, error)
- func (c *ParsedCert) OBScopes() ([]models.Scope, error)
- func (c *ParsedCert) Pem() []byte
- func (c *ParsedCert) Sha256() string
- func (c *ParsedCert) ToBson() (bson.M, error)
- func (c *ParsedCert) UnmarshalBSON(data []byte) error
- func (c *ParsedCert) Usage() models.CertUsage
- type PolicyInformation
- type PolicyQualifierInfo
- type QCStatement
- type Role
Constants ¶
View Source
const ( CertFormatPEM certFormat = "PEM" CertFormatRawPEM certFormat = "RawPEM" // PEM without headers CertFormatDER certFormat = "DER" CertFormatPKCS7 certFormat = "PKCS7" )
Variables ¶
This section is empty.
Functions ¶
func GetCertFormat ¶
Types ¶
type PSD2QcType ¶
type ParsedCert ¶
type ParsedCert struct {
Cert *x509.Certificate `json:"-"` // not serialized
Registers []models.Register `bson:"registers" json:"registers"`
CreatedAt time.Time `bson:"created_at" json:"created_at"`
UpdatedAt time.Time `bson:"updated_at" json:"updated_at"`
IsActive bool `bson:"is_active" json:"is_active"`
Position models.Position `bson:"position" json:"position"`
}
func ParseCerts ¶
func ParseCerts(data []byte) ([]*ParsedCert, error)
func (*ParsedCert) CertificateResponse ¶
func (c *ParsedCert) CertificateResponse() (*models.CertificateResponse, error)
func (*ParsedCert) CompanyId ¶
func (c *ParsedCert) CompanyId() string
func (*ParsedCert) Expired ¶
func (c *ParsedCert) Expired() bool
func (*ParsedCert) IsSandbox ¶
func (c *ParsedCert) IsSandbox() bool
func (*ParsedCert) NCA ¶
func (c *ParsedCert) NCA() (*NCA, error)
func (*ParsedCert) Pem ¶
func (c *ParsedCert) Pem() []byte
func (*ParsedCert) Sha256 ¶
func (c *ParsedCert) Sha256() string
func (*ParsedCert) UnmarshalBSON ¶
func (c *ParsedCert) UnmarshalBSON(data []byte) error
func (*ParsedCert) Usage ¶
func (c *ParsedCert) Usage() models.CertUsage
type PolicyInformation ¶
type PolicyInformation struct {
PolicyIdentifier asn1.ObjectIdentifier
PolicyQualifiers []PolicyQualifierInfo `asn1:"optional"`
}
type PolicyQualifierInfo ¶
type PolicyQualifierInfo struct {
PolicyQualifierId asn1.ObjectIdentifier
Qualifier asn1.RawValue `asn1:"optional"`
}
type QCStatement ¶
type QCStatement struct {
ID asn1.ObjectIdentifier
Value asn1.RawValue `asn1:"optional"`
}
Click to show internal directories.
Click to hide internal directories.