pkcs11uri

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package pkcs11uri implements a subset of the PKCS#11 URI specification. See https://www.rfc-editor.org/rfc/rfc7512.html for the format specification of these URIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PKCS11URI

type PKCS11URI struct {
	Token               string
	Manufacturer        string
	Serial              string
	Model               string
	LibraryManufacturer string
	LibraryVersion      pkcs11.Version
	LibraryVersionSet   bool
	LibraryDescription  string
	Object              string
	Type                string
	ID                  string
	SlotDescription     string
	SlotManufacturer    string
	SlotID              int
	SlotIDSet           bool

	PinSource        string
	PinValue         string
	ModuleName       string
	ModulePath       string
	VendorAttributes map[string]string
}

PKCS11URI encapsulates path and query attributes of a PKCS#11 URI.

func Parse

func Parse(p11Url string) (*PKCS11URI, error)

Parse a PKCS#11 URI and assign path and query attributes to the corresponding fields in the returned PKCS11URI instance.

Jump to

Keyboard shortcuts

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