|
|
|
|
|
- Propiedades específicas de las variables xmlSignature
xmlSignature (tipo Variable)
El tipo xmlSignature define las características avanzadas de una firma XML. Puede definir y cambiar las características de esta firma utilizando diferentes propiedades de WLanguage. Observación: Para obtener más información sobre la declaración de este tipo de variable y el uso de propiedades WLanguage, consulte Declarar una 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].AlgorithmHash = 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)
Observaciones Propiedades específicas de las variables xmlSignature Las siguientes propiedades utilizan variables de tipo xmlSignature: | | | Nombre de la propiedad | Tipo utilizado | Efecto |
---|
AlgorithmNormalization | Constante de tipo Integer | Método de estandarización del XML (C14N): - atNone: no hay método de estandarización.
- atC14N11Inclusive: Método de estandarización C14N11 incluido.
- atC14N11InclusiveWithComments: Incluye el método de estandarización C14N11 con comentarios.
- atC14NExclusive: Método exclusivo de estandarización C14N.
- atC14NExclusiveWithComments: Método exclusivo de estandarización C14N con comentarios.
- atC14NInclusive: Método de estandarización C14N incluido.
- atC14NInclusiveWithComments: Incluye el método de estandarización C14N con comentarios.
| AlgorithmSignature | Constante de tipo Integer | Método utilizado para la firma:
- comoDSA_SHA_160: Algoritmo de encriptación DSA y algoritmo hash SHA 160
- comoRSA_SHA_160: Algoritmo de encriptación RSA y algoritmo hash SHA 160
- comoRSA_SHA_256: Algoritmo de encriptación RSA y algoritmo SHA 256 hash
| Clave | | Certificate o archivo clave utilizado para la firma. Si este Property corresponde a un archivo, se debe especificar el KeyFileType Property . | KeyFileType | Constante de tipo Integer | Si la propiedad Key corresponde a un archivo, la propiedad KeyFileType permite definir el tipo de codificación del archivo: - tfcBinary: binario encoding.
- tfcDER: DER encoding (Regla Distinguida encoding).
- tfcPEM: PEM encoding.
- tfcPKCS12: PKCS12 encoding.
- tfcPKCS8DER: PKCS8 DE encoding.
- tfcPKCS8PEM: PKCS8 PEM encoding.
| KeyInformation | Array de variables de tipo xmlSignatureInformationKeyX509 | Se utiliza para especificar la información sobre la clave utilizada. | KeyPassword | Cadena de caracteres | Contraseña utilizada para descifrar la clave private. | reference | Array de xmlSignatureReference | Elementos para firmar. |
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|