Documentation ¶
Overview ¶
* Copyright (c) 2023 Intel Corporation * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2022 Intel Corporation * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2022 Intel Corporation * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2022 Intel Corporation * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2022 Intel Corporation * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2022 Intel Corporation * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2022 Intel Corporation * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause
Index ¶
Constants ¶
const (
AtsCertChainMaxLen = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmberClient ¶
type AmberClient interface { GetAmberCertificates() ([]byte, error) GetNonce() (*VerifierNonce, error) GetToken(verifierNonce *VerifierNonce, policyIds []uuid.UUID, evidence *Evidence) (string, error) CollectToken(adapter EvidenceAdapter, policyIds []uuid.UUID) (string, error) VerifyToken(string) (*jwt.Token, error) }
AmberClient is an interface which exposes methods for calling Amber REST APIs
type AttestationTokenResponse ¶
type AttestationTokenResponse struct {
Token string `json:"token"`
}
type Config ¶
type Config struct { BaseUrl string TlsCfg *tls.Config ApiUrl string ApiKey string // contains filtered or unexported fields }
Config holds the Amber configuration for Client
type EvidenceAdapter ¶
EvidenceAdapter is an interface which exposes methods for collecting Quote using Adapter
type VerifierNonce ¶
type VerifierNonce struct { Val []byte `json:"val"` Iat []byte `json:"iat"` Signature []byte `json:"signature"` }
VerifierNonce holds the signed nonce issued from Amber