utils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForKbJwt

func CheckForKbJwt(candidate string) *string

func CopyMap

func CopyMap(m map[string]any) map[string]any

func CopySlice

func CopySlice(s []any) []any

func GetDigests

func GetDigests(m map[string]any) []any

func Pointer

func Pointer[T comparable](t T) *T

Pointer is a helper method that returns a pointer to the given value.

func PointerMap

func PointerMap(m map[string]any) *map[string]any

PointerMap is a helper method that returns a pointer to the given map.

func PointerSlice

func PointerSlice(s []any) *[]any

PointerSlice is a helper method that returns a pointer to the given slice.

func StringifyDisclosures

func StringifyDisclosures(disclosures []disclosure.Disclosure) string

func StripSDClaims

func StripSDClaims(body map[string]any) map[string]any

func StripSDClaimsFromSlice

func StripSDClaimsFromSlice(input []any) []any

func ValidateArrayClaims

func ValidateArrayClaims(s *[]any, currentDisclosure *disclosure.Disclosure, base64HashedDisclosure string) (found bool, err error)

func ValidateDigests

func ValidateDigests(body map[string]any) error

func ValidateDisclosures

func ValidateDisclosures(disclosures []string) ([]disclosure.Disclosure, error)

func ValidateSDClaims

func ValidateSDClaims(values *map[string]any, currentDisclosure *disclosure.Disclosure, base64HashedDisclosure string) (found bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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