verify

package
v0.0.0-...-d123447 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role struct {
	OID   asn1.ObjectIdentifier
	Value models.Scope
}

type URLStruct

type URLStruct struct {
	URL  string
	Lang string
}

type VerifyRequest

type VerifyRequest struct {
	Cert string `json:"cert"`
}

type VerifyResponse

type VerifyResponse struct {
	Certificate *models.CertificateResponse `json:"cert"`
	TPP         *models.TppResponse         `json:"tpp"`
	Valid       bool                        `json:"valid"`
	Scopes      map[string][]string         `json:"scopes"`
	Reason      string                      `json:"reason,omitempty"`
}

type VerifySvc

type VerifySvc struct {
	// contains filtered or unexported fields
}

func NewVerifySvc

func NewVerifySvc(db db.TppRepository, httpClient vhttp.Client) *VerifySvc

func (*VerifySvc) AddIntermediate

func (s *VerifySvc) AddIntermediate(cert *cert.ParsedCert)

func (*VerifySvc) AddRoot

func (s *VerifySvc) AddRoot(cert *cert.ParsedCert)

func (*VerifySvc) HashExists

func (s *VerifySvc) HashExists(link string) bool

func (*VerifySvc) Verify

func (s *VerifySvc) Verify(c *gin.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL