credentialcomposer

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialComposer

type CredentialComposer interface {
	catalog.PluginInfo

	ComposeServerX509CA(ctx context.Context, attributes X509CAAttributes) (X509CAAttributes, error)
	ComposeServerX509SVID(ctx context.Context, attributes X509SVIDAttributes) (X509SVIDAttributes, error)
	ComposeAgentX509SVID(ctx context.Context, id spiffeid.ID, publicKey crypto.PublicKey, attributes X509SVIDAttributes) (X509SVIDAttributes, error)
	ComposeWorkloadX509SVID(ctx context.Context, id spiffeid.ID, publicKey crypto.PublicKey, attributes X509SVIDAttributes) (X509SVIDAttributes, error)
	ComposeWorkloadJWTSVID(ctx context.Context, id spiffeid.ID, attributes JWTSVIDAttributes) (JWTSVIDAttributes, error)
}

type JWTSVIDAttributes

type JWTSVIDAttributes struct {
	Claims map[string]interface{}
}

type Repository

type Repository struct {
	CredentialComposers []CredentialComposer
}

func (*Repository) AddCredentialComposer

func (repo *Repository) AddCredentialComposer(credentialComposer CredentialComposer)

func (*Repository) Clear

func (repo *Repository) Clear()

func (*Repository) GetCredentialComposers

func (repo *Repository) GetCredentialComposers() []CredentialComposer

type V1

func (V1) ComposeAgentX509SVID

func (v1 V1) ComposeAgentX509SVID(ctx context.Context, id spiffeid.ID, publicKey crypto.PublicKey, attributes X509SVIDAttributes) (X509SVIDAttributes, error)

func (V1) ComposeServerX509CA

func (v1 V1) ComposeServerX509CA(ctx context.Context, attributes X509CAAttributes) (X509CAAttributes, error)

func (V1) ComposeServerX509SVID

func (v1 V1) ComposeServerX509SVID(ctx context.Context, attributes X509SVIDAttributes) (X509SVIDAttributes, error)

func (V1) ComposeWorkloadJWTSVID

func (v1 V1) ComposeWorkloadJWTSVID(ctx context.Context, id spiffeid.ID, attributes JWTSVIDAttributes) (JWTSVIDAttributes, error)

func (V1) ComposeWorkloadX509SVID

func (v1 V1) ComposeWorkloadX509SVID(ctx context.Context, id spiffeid.ID, publicKey crypto.PublicKey, attributes X509SVIDAttributes) (X509SVIDAttributes, error)

type X509CAAttributes

type X509CAAttributes struct {
	Subject           pkix.Name
	PolicyIdentifiers []asn1.ObjectIdentifier
	ExtraExtensions   []pkix.Extension
}

type X509SVIDAttributes

type X509SVIDAttributes struct {
	Subject         pkix.Name
	DNSNames        []string
	ExtraExtensions []pkix.Extension
}

Jump to

Keyboard shortcuts

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