Documentation ¶
Overview ¶
Package qcstatements contains functions for building and extracting qualified statements for PSD2 qualified certificates. See ETSI TS 119 495 v1.2.1 and RFC 3739.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // QSEALType is the ASN.1 object identifier for QSeal certificates. QSEALType = asn1.ObjectIdentifier{0, 4, 0, 1862, 1, 6, 2} // QWACType is the ASN.1 object identifier for QWA certificates. QWACType = asn1.ObjectIdentifier{0, 4, 0, 1862, 1, 6, 3} )
Functions ¶
func Dump ¶
Dump outputs to stdout a human-readable representation of an encoded qualified statement.
func DumpFromHex ¶
DumpFromHex outputs to stdout a human-readable representation of a hex encoded qualified statement.
func Serialize ¶
func Serialize(roles []Role, ca CompetentAuthority, t asn1.ObjectIdentifier) ([]byte, error)
Serialize will serialize the given roles and CA information into a DER encoded ASN.1 qualified statement. qcType should be one of QWACType or QSEALType.
Types ¶
type CompetentAuthority ¶
type CompetentAuthority struct { // Name of the authority, e.g. "Financial Conduct Authority". Name string // NCA identifier of the authority, e.g. "GB-FCA". ID string }
CompetentAuthority under PSD2.
func CompetentAuthorityForCountryCode ¶
func CompetentAuthorityForCountryCode(code string) (*CompetentAuthority, error)
CompetentAuthorityForCountryCode returns the correct competent authority string, e.g., "GB-FCA", based on the given country code.
Click to show internal directories.
Click to hide internal directories.