Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyFromClaims ¶
KeyFromClaims creates the public key structure from the claims
Types ¶
type PKITokenIssuer ¶
type PKITokenIssuer interface {
CreateTokenFromCertificate(*x509.Certificate) ([]byte, error)
}
PKITokenIssuer is the interface of an object that can issue a PKI token.
func NewPKIIssuer ¶
func NewPKIIssuer(privateKey *ecdsa.PrivateKey) PKITokenIssuer
NewPKIIssuer initializes a new signer structure
type PKITokenVerifier ¶
PKITokenVerifier is the interface of an object that can verify a PKI token.
func NewPKIVerifier ¶
func NewPKIVerifier(publicKeys []*ecdsa.PublicKey, cacheValidity time.Duration) PKITokenVerifier
NewPKIVerifier returns a new PKIConfiguration.
Click to show internal directories.
Click to hide internal directories.