Documentation ¶
Overview ¶
Copyright 2023 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- Variables
- type EvidenceHandler
- func (s EvidenceHandler) AppraiseEvidence(ec *proto.EvidenceContext, endorsementsString []string) (*ear.AttestationResult, error)
- func (s EvidenceHandler) ExtractClaims(token *proto.AttestationToken, trustAnchors []string) (map[string]interface{}, error)
- func (s EvidenceHandler) GetAttestationScheme() string
- func (s EvidenceHandler) GetName() string
- func (s EvidenceHandler) GetSupportedMediaTypes() []string
- func (s EvidenceHandler) ValidateEvidenceIntegrity(token *proto.AttestationToken, trustAnchors []string, endorsements []string) error
- type StoreHandler
- func (s StoreHandler) GetAttestationScheme() string
- func (s StoreHandler) GetName() string
- func (s StoreHandler) GetRefValueIDs(tenantID string, trustAnchors []string, claims map[string]interface{}) ([]string, error)
- func (s StoreHandler) GetSupportedMediaTypes() []string
- func (s StoreHandler) GetTrustAnchorIDs(token *proto.AttestationToken) ([]string, error)
- func (s StoreHandler) SynthKeysFromRefValue(tenantID string, swComp *handler.Endorsement) ([]string, error)
- func (s StoreHandler) SynthKeysFromTrustAnchor(tenantID string, ta *handler.Endorsement) ([]string, error)
Constants ¶
View Source
const SchemeName = "riot"
Variables ¶
View Source
var EvidenceMediaTypes = []string{
"application/pem-certificate-chain",
}
Functions ¶
This section is empty.
Types ¶
type EvidenceHandler ¶
type EvidenceHandler struct { }
func (EvidenceHandler) AppraiseEvidence ¶
func (s EvidenceHandler) AppraiseEvidence( ec *proto.EvidenceContext, endorsementsString []string, ) (*ear.AttestationResult, error)
func (EvidenceHandler) ExtractClaims ¶
func (s EvidenceHandler) ExtractClaims( token *proto.AttestationToken, trustAnchors []string, ) (map[string]interface{}, error)
func (EvidenceHandler) GetAttestationScheme ¶
func (s EvidenceHandler) GetAttestationScheme() string
func (EvidenceHandler) GetName ¶
func (s EvidenceHandler) GetName() string
func (EvidenceHandler) GetSupportedMediaTypes ¶
func (s EvidenceHandler) GetSupportedMediaTypes() []string
func (EvidenceHandler) ValidateEvidenceIntegrity ¶
func (s EvidenceHandler) ValidateEvidenceIntegrity( token *proto.AttestationToken, trustAnchors []string, endorsements []string, ) error
type StoreHandler ¶
type StoreHandler struct { }
func (StoreHandler) GetAttestationScheme ¶
func (s StoreHandler) GetAttestationScheme() string
func (StoreHandler) GetName ¶
func (s StoreHandler) GetName() string
func (StoreHandler) GetRefValueIDs ¶
func (StoreHandler) GetSupportedMediaTypes ¶
func (s StoreHandler) GetSupportedMediaTypes() []string
func (StoreHandler) GetTrustAnchorIDs ¶
func (s StoreHandler) GetTrustAnchorIDs(token *proto.AttestationToken) ([]string, error)
func (StoreHandler) SynthKeysFromRefValue ¶
func (s StoreHandler) SynthKeysFromRefValue(tenantID string, swComp *handler.Endorsement) ([]string, error)
func (StoreHandler) SynthKeysFromTrustAnchor ¶
func (s StoreHandler) SynthKeysFromTrustAnchor(tenantID string, ta *handler.Endorsement) ([]string, error)
Click to show internal directories.
Click to hide internal directories.