x509util

package
v0.0.0-...-aa74118 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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