publicprivate

package
v2.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package publicprivate facilitiates communication with Intel® AMT devices to manage a public-private key in the Intel® AMT CertStore.

Instances of this class can be created using the AMT_PublicKeyManagementService.AddKey method. You can't delete a key instance if it is used by some service (TLS/EAC).

Index

Constants

View Source
const (
	AMT_PublicPrivateKeyPair string = "AMT_PublicPrivateKeyPair"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	XMLName           xml.Name `xml:"Body"`
	GetResponse       PublicPrivateKeyPair
	EnumerateResponse common.EnumerateResponse
	PullResponse      PullResponse
}

OUTPUTS Response Types

type KeyPair

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

func NewPublicPrivateKeyPairWithClient

func NewPublicPrivateKeyPairWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) KeyPair

NewPublicPrivateKeyPairWithClient instantiates a new KeyPair

func (KeyPair) Delete

func (keyPair KeyPair) Delete(handle string) (response Response, err error)

Deletes an instance of a key pair

func (KeyPair) Enumerate

func (keyPair KeyPair) Enumerate() (response Response, err error)

Enumerate returns an enumeration context which is used in a subsequent Pull call

func (KeyPair) Get

func (keyPair KeyPair) Get(handle int) (response Response, err error)

Get retrieves the representation of the instance

func (KeyPair) Pull

func (keyPair KeyPair) Pull(enumerationContext string) (response Response, err error)

Pull returns the instances of this class. An enumeration context provided by the Enumerate call is used as input.

type PublicPrivateKeyPair

type PublicPrivateKeyPair struct {
	XMLName     xml.Name `xml:"AMT_PublicPrivateKeyPair"`
	ElementName string   // A user-friendly name for the object. This property allows each instance to define a user-friendly name in addition to its key properties, identity data, and description information. Note that the Name property of ManagedSystemElement is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user-friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information can be present in both the Name and ElementName properties. Note that if there is an associated instance of CIM_EnabledLogicalElementCapabilities, restrictions on this properties may exist as defined in ElementNameMask and MaxElementNameLen properties defined in that class.
	InstanceID  string   // Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class.
	DERKey      string   // RSA Key encoded as DES PKCS#1. The Exponent (E) is 65537 (0x010001).When this structure is used as an output parameter (GET or PULL method),only the public section of the key is exported. uint8[1210]
}

OUTPUTS Response Types

type PublicPrivateSelector

type PublicPrivateSelector message.Selector

OUTPUTS Response Types

type PullResponse

type PullResponse struct {
	XMLName                   xml.Name               `xml:"PullResponse"`
	PublicPrivateKeyPairItems []PublicPrivateKeyPair `xml:"Items>AMT_PublicPrivateKeyPair"`
}

OUTPUTS Response Types

type Response

type Response struct {
	*client.Message
	XMLName xml.Name       `xml:"Envelope"`
	Header  message.Header `xml:"Header"`
	Body    Body           `xml:"Body"`
}

OUTPUTS Response Types

func (*Response) JSON

func (r *Response) JSON() string

JSON marshals the type into JSON format

func (*Response) YAML

func (r *Response) YAML() string

YAML marshals the type into YAML format

Jump to

Keyboard shortcuts

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