|
|
|
|
|
- Properties specific to xmlSignature variables
xmlSignature (Variable type) In french: xmlSignature
The xmlSignature type is used to define the advanced characteristics of an XML signature. You can define and change the characteristics of this signature using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
MySignature is xmlSignature MySignature.AlgorithmNormalization = atC14NExclusiveWithComments MySignature.AlgorithmSignature = asRSA_SHA_160 MySignature.Key = MyCertificate Add(MySignature.Reference, myReference) MySignature.KeyInformation[1].Type = informationKeyX509
MyRequest is wsRequest
MySecurity is Security
id is string = GetGUID(guidFormatted)
id = "_" + Middle(id, 2, Length(id) - 2)
cMySignature is xmlSignature
cMySignature.AlgorithmNormalization = atC14NExclusive
cMySignature.AlgorithmSignature = saRSA_SHA_256
cMySignature.Key = fExeDir + fSep + "mykey.p12"
cMySignature.KeyPassword = "password"
cMySignature.KeyFileType = tfcPKCS12
cMySignature.Reference[1].HashAlgorithm = HA_SHA_256
cMySignature.Reference[1].URI = "#" + id
cMySignature.Reference[1].Transformation[1] = atEnveloped
cMySignature.Reference[1].Transformation[2] = atC14NExclusive
x509 is xmlSignatureInformationKeyX509
x509.WithCertificate = True
cMySignature.KeyInformation[1] = x509
dtCurrentDateTime is DateTime
MySecurity.Assertion:ID = id
MySecurity.Assertion:IssueInstant = dtCurrentDateTime
MySecurity.Assertion:Version = "2.0"
MySecurity.Assertion.Issuer = "test"
MaSecurity.Assertion.Issuer:Format = ...
"urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName"
SOAPAddXMLSignature(MaRequest, MySecurity.Assertion.Signature, cMySignature)
Remarks Properties specific to xmlSignature variables The following properties can be used to handle xmlSignature variables: | | | Property name | Type used | Effect |
---|
AlgorithmNormalization | Integer constant | Method for standardizing the XML (C14N): - atNone: no standardization method.
- atC14N11Inclusive: Inclusive C14N11 standardization method.
- atC14N11InclusiveWithComments: Inclusive C14N11 standardization method with comments.
- atC14NExclusive: Exclusive C14N standardization method.
- atC14NExclusiveWithComments: Exclusive C14N standardization method with comments.
- atC14NInclusive: Inclusive C14N standardization method.
- atC14NInclusiveWithComments: Inclusive C14N standardization method with comments.
| AlgorithmSignature | Integer constant | Method used for the signature: - saDSA_SHA_160: Digital Signature Algorithm (DSA) and SHA-160.
- saECDSA_SHA_224: Elliptic Curve Digital Signature Algorithm (ECDSA) and SHA-224.
- saECDSA_SHA_256: Elliptic Curve Digital Signature Algorithm (ECDSA) and SHA-256.
- saECDSA_SHA_384: Elliptic Curve Digital Signature Algorithm (ECDSA) and SHA-384.
- saECDSA_SHA_512: Elliptic Curve Digital Signature Algorithm (ECDSA) and SHA-512.
- saRSA_SHA_160: RSA encryption algorithm and SHA-160.
- saRSA_SHA_256: RSA encryption algorithm and SHA-256.
- saRSA_SHA_384: RSA encryption algorithm and SHA-384.
- saRSA_SHA_512: RSA encryption algorithm and SHA-512.
| Key | | Certificate or key file used for the signature. If this property corresponds to a file, the KeyFileType property must be specified. | KeyFileType | Integer constant | If the Key property corresponds to a file, the KeyFileType property is used to define the type of file encoding: - tfcBinary: binary encoding.
- tfcDER: DER encoding (Distinguished Encoding Rule).
- tfcPEM: PEM encoding.
- tfcPKCS12: PKCS12 encoding.
- tfcPKCS8DER: PKCS8 DER encoding.
- tfcPKCS8PEM: PKCS8 PEM encoding.
| KeyInformation | Array of xmlSignatureInformationKeyX509 variables | Used to specify information about the key used. | KeyPassword | Character string | Password used to decrypt the private key. | Reference | Array of xmlSignatureReference | Elements to sign. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|