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
- type Body
- type KeyPair
- func (keyPair KeyPair) Delete(handle string) (response Response, err error)
- func (keyPair KeyPair) Enumerate() (response Response, err error)
- func (keyPair KeyPair) Get(instanceID string) (response Response, err error)
- func (keyPair KeyPair) Pull(enumerationContext string) (response Response, err error)
- type PublicPrivateKeyPair
- type PublicPrivateSelector
- type PullResponse
- type RefinedPublicPrivateKeyPair
- type RefinedPullResponse
- type Response
Constants ¶
View Source
const (
AMTPublicPrivateKeyPair 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 RefinedPullResponse RefinedPullResponse }
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) Enumerate ¶
Enumerate returns an enumeration context which is used in a subsequent Pull call.
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 PullResponse ¶
type PullResponse struct { XMLName xml.Name `xml:"PullResponse"` PublicPrivateKeyPairItems []PublicPrivateKeyPair `xml:"Items>AMT_PublicPrivateKeyPair"` }
OUTPUTS Response Types.
type RefinedPublicPrivateKeyPair ¶ added in v2.7.0
type RefinedPublicPrivateKeyPair struct { 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] CertificateHandle string `json:"CertificateHandle,omitempty"` }
OUTPUTS Response Types.
type RefinedPullResponse ¶ added in v2.7.0
type RefinedPullResponse struct {
PublicPrivateKeyPairItems []RefinedPublicPrivateKeyPair
}
OUTPUTS Response Types.
Click to show internal directories.
Click to hide internal directories.