doxm

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Overview

Device Owner Transfer Method https://github.com/openconnectivityfoundation/security/blob/master/swagger2.0/oic.sec.doxm.swagger.json

Index

Constants

View Source
const (
	ResourceType = "oic.r.doxm"
	ResourceURI  = "/oic/sec/doxm"
)
View Source
const (
	JustWorks               = OwnerTransferMethod(0)
	SharedPin               = OwnerTransferMethod(1)
	ManufacturerCertificate = OwnerTransferMethod(2)
	Self                    = OwnerTransferMethod(4)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Doxm

type Doxm struct {
	ResourceOwner                 string                    `json:"rowneruuid"`
	SupportedOwnerTransferMethods []OwnerTransferMethod     `json:"oxms"`
	OwnerID                       string                    `json:"devowneruuid"`
	DeviceID                      string                    `json:"deviceuuid"`
	Owned                         bool                      `json:"owned"`
	Name                          string                    `json:"n"`
	InstanceID                    string                    `json:"id"`
	SupportedCredentialTypes      credential.CredentialType `json:"sct"`
	SelectedOwnerTransferMethod   OwnerTransferMethod       `json:"oxmsel"`
	Interfaces                    []string                  `json:"if"`
	ResourceTypes                 []string                  `json:"rt"`
}

type DoxmUpdate

type DoxmUpdate struct {
	ResourceOwner             *string              `json:"rowneruuid,omitempty"`
	OwnerID                   *string              `json:"devowneruuid,omitempty"`
	DeviceID                  *string              `json:"deviceuuid,omitempty"`
	Owned                     *bool                `json:"owned,omitempty"`
	SelectOwnerTransferMethod *OwnerTransferMethod `json:"oxmsel,omitempty"`
}

type OwnerTransferMethod

type OwnerTransferMethod int

func (OwnerTransferMethod) String

func (o OwnerTransferMethod) String() string

Jump to

Keyboard shortcuts

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