 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const T_CERTIFICATE = infodata.TypeVersion("Certificate") // "Certificate/v1"
    Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate interface {
	infodata.InfoData
	KeyPair() (tls.Certificate, error)
	Certificates() []*x509.Certificate
	PrivateKey() *rsa.PrivateKey
	CertData() []byte
	KeyData() []byte
}
    Certificate ins the InfoData type to storing Certificates in an InfoDataList It implements the InfoData interface plus type specific access functions
func NewCertificate ¶
func NewCertificate(key *rsa.PrivateKey, certs ...*x509.Certificate) (Certificate, error)
NewCertificate is a constructor for a Certificate Type using the semantical content
func NewCertificateByData ¶
func NewCertificateByData(cert, key []byte) (Certificate, error)
NewCertificateByData is a constructor for a Certificate Type using pem representations
 Click to show internal directories. 
   Click to hide internal directories.