-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathATMConfigurationParameter2.go
35 lines (26 loc) · 1.17 KB
/
ATMConfigurationParameter2.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package iso20022
// Parameters to be used by the various cryptographic key commands.
type ATMConfigurationParameter2 struct {
// Category of the cryptographic key.
KeyCategory *CryptographicKeyType4Code `xml:"KeyCtgy,omitempty"`
// Random value from the host provided during a previous exchange.
HostChallenge *Max140Binary `xml:"HstChllng,omitempty"`
// Ordered certificate chain of the asymmetric key encryption key, starting with the host certificate.
Certificate []*Max5000Binary `xml:"Cert,omitempty"`
// Cryptographic key involved in the security command.
KeyProperties []*KEKIdentifier4 `xml:"KeyProps,omitempty"`
}
func (a *ATMConfigurationParameter2) SetKeyCategory(value string) {
a.KeyCategory = (*CryptographicKeyType4Code)(&value)
}
func (a *ATMConfigurationParameter2) SetHostChallenge(value string) {
a.HostChallenge = (*Max140Binary)(&value)
}
func (a *ATMConfigurationParameter2) AddCertificate(value string) {
a.Certificate = append(a.Certificate, (*Max5000Binary)(&value))
}
func (a *ATMConfigurationParameter2) AddKeyProperties() *KEKIdentifier4 {
newValue := new(KEKIdentifier4)
a.KeyProperties = append(a.KeyProperties, newValue)
return newValue
}