wap

package
v0.0.0-...-2921379 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ROBORenewPeriod = 42

ROBORenewPeriod is the amount of days before a certificate expires to begin automatic renewal

View Source
const ROBORetryInterval = 4

ROBORetryInterval is the amount of days between trying an automatic certificate renewal

Variables

View Source
var DefaultPollCharacteristic = Characteristic{
	Type: "Poll",
	Params: []Parameter{
		{
			Name:     "IntervalForFirstSetOfRetries",
			Value:    "3",
			DataType: "integer",
		},
		{
			Name:     "NumberOfFirstRetries",
			Value:    "5",
			DataType: "integer",
		},
		{
			Name:     "IntervalForSecondSetOfRetries",
			Value:    "15",
			DataType: "integer",
		},
		{
			Name:     "NumberOfSecondRetries",
			Value:    "8",
			DataType: "integer",
		},
		{
			Name:     "IntervalForRemainingScheduledRetries",
			Value:    "480",
			DataType: "integer",
		},
		{
			Name:     "NumberOfRemainingScheduledRetries",
			Value:    "0",
			DataType: "integer",
		},
		{
			Name:     "PollOnLogin",
			Value:    "true",
			DataType: "boolean",
		},
		{
			Name:     "AllUsersPollOnFirstLogin",
			Value:    "true",
			DataType: "boolean",
		},
	},
}

DefaultPollCharacteristic is a default "Poll" characteristic with default parameter set. This characteristic is for use with the DMClient characteristics.

Functions

func TimeInMiliseconds

func TimeInMiliseconds(d time.Duration) string

TimeInMiliseconds converts a duration into a time string

Types

type Characteristic

type Characteristic struct {
	Type            string `xml:"type,attr,omitempty"`
	Params          []Parameter
	Characteristics []Characteristic `xml:"characteristic,omitempty"`
}

Characteristic is a management client characteristic

type Parameter

type Parameter struct {
	XMLName  xml.Name `xml:"parm"`
	Name     string   `xml:"name,attr,omitempty"`
	Value    string   `xml:"value,attr,omitempty"`
	DataType string   `xml:"datatype,attr,omitempty"`
}

Parameter is a management client parameter (setting) that is set on a characteristic

type ProvisioningDoc

type ProvisioningDoc struct {
	XMLName        xml.Name         `xml:"wap-provisioningdoc"`
	Version        string           `xml:"version,attr"`
	Characteristic []Characteristic `xml:"characteristic"`
}

ProvisioningDoc contains the manage client configuration

func NewProvisioningDoc

func NewProvisioningDoc() ProvisioningDoc

NewProvisioningDoc returns a new empty WAP Provisioning Document

func (*ProvisioningDoc) NewCertStore

func (doc *ProvisioningDoc) NewCertStore(identityRootCertificate *x509.Certificate, certStore string, clientIssuedCertificateRaw []byte, renewURL string)

NewCertStore creates a new "CertificateStore" characteristic on the document

func (*ProvisioningDoc) NewDMClient

func (doc *ProvisioningDoc) NewDMClient(providerID string, providerParameters []Parameter, providerCharacteristics []Characteristic)

NewDMClient creates a new "DMClient" characteristic on the document

func (*ProvisioningDoc) NewEmptyApplication

func (doc *ProvisioningDoc) NewEmptyApplication(providerID string)

NewEmptyApplication creates a new "APPLICATION" characteristic on the document

func (*ProvisioningDoc) NewW7Application

func (doc *ProvisioningDoc) NewW7Application(providerID, name, managementServiceURL, certStore, clientSubject string)

NewW7Application creates a new "w7 APPLICATION" characteristic on the document

Jump to

Keyboard shortcuts

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