config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_x509_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {

	// Version indicates message protocol version
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// SigningIdentity holds information on the signing identity
	SigningIdentity *SigningIdentityInfo `protobuf:"bytes,2,opt,name=signing_identity,json=signingIdentity,proto3" json:"signing_identity,omitempty"`
	// CryptoConfig contains the configuration parameters
	// for the cryptographic algorithms
	CryptoConfig *CryptoConfig `protobuf:"bytes,3,opt,name=crypto_config,json=cryptoConfig,proto3" json:"crypto_config,omitempty"`
	// contains filtered or unexported fields
}

Config collects all the configuration information for an x509 identity.

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetCryptoConfig

func (x *Config) GetCryptoConfig() *CryptoConfig

func (*Config) GetSigningIdentity

func (x *Config) GetSigningIdentity() *SigningIdentityInfo

func (*Config) GetVersion

func (x *Config) GetVersion() uint64

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type CryptoConfig

type CryptoConfig struct {

	// SignatureHashFamily is a string representing the hash family to be used
	// during sign and verify operations.
	// Allowed values are "SHA2" and "SHA3".
	SignatureHashFamily string `protobuf:"bytes,1,opt,name=signature_hash_family,json=signatureHashFamily,proto3" json:"signature_hash_family,omitempty"`
	// contains filtered or unexported fields
}

CryptoConfig contains configuration parameters for the cryptographic algorithms

func (*CryptoConfig) Descriptor deprecated

func (*CryptoConfig) Descriptor() ([]byte, []int)

Deprecated: Use CryptoConfig.ProtoReflect.Descriptor instead.

func (*CryptoConfig) GetSignatureHashFamily

func (x *CryptoConfig) GetSignatureHashFamily() string

func (*CryptoConfig) ProtoMessage

func (*CryptoConfig) ProtoMessage()

func (*CryptoConfig) ProtoReflect

func (x *CryptoConfig) ProtoReflect() protoreflect.Message

func (*CryptoConfig) Reset

func (x *CryptoConfig) Reset()

func (*CryptoConfig) String

func (x *CryptoConfig) String() string

type KeyInfo

type KeyInfo struct {

	// Identifier of the key inside the default keystore; this for
	// the case of Software BCCSP as well as the HSM BCCSP would be
	// the SKI of the key
	KeyIdentifier string `protobuf:"bytes,1,opt,name=key_identifier,json=keyIdentifier,proto3" json:"key_identifier,omitempty"`
	// KeyMaterial (optional) for the key to be imported; this is
	// properly encoded key bytes, prefixed by the type of the key
	KeyMaterial []byte `protobuf:"bytes,2,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"`
	// contains filtered or unexported fields
}

KeyInfo represents a (secret) key that is either already stored in the bccsp/keystore or key material to be imported to the bccsp key-store. In later versions it may contain also a keystore identifier

func (*KeyInfo) Descriptor deprecated

func (*KeyInfo) Descriptor() ([]byte, []int)

Deprecated: Use KeyInfo.ProtoReflect.Descriptor instead.

func (*KeyInfo) GetKeyIdentifier

func (x *KeyInfo) GetKeyIdentifier() string

func (*KeyInfo) GetKeyMaterial

func (x *KeyInfo) GetKeyMaterial() []byte

func (*KeyInfo) ProtoMessage

func (*KeyInfo) ProtoMessage()

func (*KeyInfo) ProtoReflect

func (x *KeyInfo) ProtoReflect() protoreflect.Message

func (*KeyInfo) Reset

func (x *KeyInfo) Reset()

func (*KeyInfo) String

func (x *KeyInfo) String() string

type SigningIdentityInfo

type SigningIdentityInfo struct {

	// PublicSigner carries the public information of the signing
	// identity. For an X.509 provider this would be represented by
	// an X.509 certificate
	PublicSigner []byte `protobuf:"bytes,1,opt,name=public_signer,json=publicSigner,proto3" json:"public_signer,omitempty"`
	// PrivateSigner denotes a reference to the private key of the
	// peer's signing identity
	PrivateSigner *KeyInfo `protobuf:"bytes,2,opt,name=private_signer,json=privateSigner,proto3" json:"private_signer,omitempty"`
	// contains filtered or unexported fields
}

SigningIdentityInfo represents the configuration information related to the signing identity the peer is to use for generating endorsements

func (*SigningIdentityInfo) Descriptor deprecated

func (*SigningIdentityInfo) Descriptor() ([]byte, []int)

Deprecated: Use SigningIdentityInfo.ProtoReflect.Descriptor instead.

func (*SigningIdentityInfo) GetPrivateSigner

func (x *SigningIdentityInfo) GetPrivateSigner() *KeyInfo

func (*SigningIdentityInfo) GetPublicSigner

func (x *SigningIdentityInfo) GetPublicSigner() []byte

func (*SigningIdentityInfo) ProtoMessage

func (*SigningIdentityInfo) ProtoMessage()

func (*SigningIdentityInfo) ProtoReflect

func (x *SigningIdentityInfo) ProtoReflect() protoreflect.Message

func (*SigningIdentityInfo) Reset

func (x *SigningIdentityInfo) Reset()

func (*SigningIdentityInfo) String

func (x *SigningIdentityInfo) String() string

Jump to

Keyboard shortcuts

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