trireme-lib: go.aporeto.io/trireme-lib/controller/pkg/pkiverifier Index | Files

package pkiverifier

import "go.aporeto.io/trireme-lib/controller/pkg/pkiverifier"

Index

Package Files

pkiverifier.go

type DatapathKey Uses

type DatapathKey struct {
    PublicKey  *ecdsa.PublicKey
    Tags       []string
    Expiration time.Time
}

DatapathKey holds the data path key with the corresponding claims.

type PKITokenIssuer Uses

type PKITokenIssuer interface {
    CreateTokenFromCertificate(*x509.Certificate, []string) ([]byte, error)
}

PKITokenIssuer is the interface of an object that can issue a PKI token.

func NewPKIIssuer Uses

func NewPKIIssuer(privateKey *ecdsa.PrivateKey) PKITokenIssuer

NewPKIIssuer initializes a new signer structure

type PKITokenVerifier Uses

type PKITokenVerifier interface {
    Verify([]byte) (*DatapathKey, error)
}

PKITokenVerifier is the interface of an object that can verify a PKI token.

func NewPKIVerifier Uses

func NewPKIVerifier(publicKeys []*ecdsa.PublicKey, cacheValidity time.Duration) PKITokenVerifier

NewPKIVerifier returns a new PKIConfiguration.

Package pkiverifier imports 9 packages (graph) and is imported by 4 packages. Updated 2019-09-21. Refresh now. Tools for package owners.