Documentation ¶
Overview ¶
Package x509util provides utility functions to process X509 certificates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGroupList ¶
func GetGroupList(cert *x509.Certificate) (map[string]struct{}, error)
GetGroupList decodes the list of groups in the certificate. The group names are returned as keys in a map. An empty map indicates no group listed. If there is a problem parsing the information an error is returned.
func GetPermittedMethods ¶
func GetPermittedMethods(cert *x509.Certificate) (map[string]struct{}, error)
GetPermittedMethods decodes the list of permitted methods in the certificate. The permitted methods are returned as keys in a map. An empty map indicates no methods are permitted. If there is a problem parsing the information an error is returned.
func GetUsername ¶
func GetUsername(cert *x509.Certificate) (string, error)
GetUsername decodes the username for whom the certificate was granted. It attests the identity of the user.
Types ¶
This section is empty.