AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de certificados
  • Properties specific to Certificate variables
  • WLanguage functions that use the Certificate type
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The Certificate type is used to handle:
  • the certificates used to sign the strings or the files.
  • the certificates used to sign the emails. In this case, a Certificate variable is used by the Email variables.
  • the certificates used for the Push notifications sent to iOS applications.
These certificates can be present:
The characteristics of a certificate can be determined using various WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Ejemplo
Reportes y Consultas
MyCertificate is Certificate
// Open the certificate picker of Windows
MyCertificate = CertificateSelect()
// Cancellation or error
IF MyCertificate.Name = "" THEN
	RETURN
END

Trace(MyCertificate.Issuer)
Trace(MyCertificate.StartValidityDate)
Trace(MyCertificate.EndValidityDate)
Trace(MyCertificate.Reliability)
Trace(MyCertificate.Name)
Trace(MyCertificate.SerialNumber)
Trace(MyCertificate.ValidForSignature)
Propiedades

Properties specific to Certificate variables

The following properties can be used to handle a certificate:
Property nameType usedEffect
EndValidityDateDateTimeEnd date and time of certificate validity.
This property is read-only.
FullIssuerCharacter stringFull name of certificate issuer.
This property is read-only.
IssuerCharacter stringName of the certificate issuer ("Issued by" characteristic).
This property is read-only.
KeyUsageInteger constantsExpected uses for this certificate:
  • certificateKeyEncipherment: Certificate used to encrypt a key.
  • certificateDataEncipherment: Certificate used to encrypt data.
  • certificateKeyExchange: Certificate used to exchange a key.
  • certificateNonRepudiation: Certificate used for non-repudiation.
  • certificateDigitalSignature: Certificate used for digital signatures.
  • certificateSignKey: Certificate used to sign a key.
This property is read-only.
NameCharacter stringName of the person to whom the certificate is given.
This property is read-only.
OIDUsageArray of stringsList of OIDs of the applications that use this certificate.
This property is read-only.
ReliabilityInteger constantTrust level of the certificate corresponding to one of the following constants:
  • certificateExpired: the certificate is expired.
  • certificateInvalid: the certificate is invalid.
  • certificateUntrusted: the certificate cannot be trusted.
  • certificateOk: the certificate can be trusted.
This property is read-only.
SerialNumberCharacter stringSerial number of the certificate.
This property is read-only.
StartValidityDateDateTimeStart date and time of certificate validity.
This property is read-only.
SubjectCharacter stringText to identify the entity associated with the public key. For example, domain for which the certificate is issued and, depending on the type of certificate, information about the company that runs the site, validity period, etc.
This property is read-only.
ThumbPrintCharacter stringUnique number associated with the certificate. This number is automatically created when creating a certificate.
This property is read-only.
ValidForSignatureBooleanThis property is used to find out whether the certificate owns a private key as well as all the characteristics required to perform a signature:
  • be of type "SIGNATURE" (AT_SIGNATURE).
  • be of type "KEY_EXCHANGE" (AT_KEYEXCHANGE).
This property is read-only.
Observaciones

WLanguage functions that use the Certificate type

The following functions use Certificate variables:
Versión mínima requerida
  • Versión 16
Esta página también está disponible para…
Comentarios
XADES-BES
Se puede firmar en formato XADES-BES ?
JAVIER / Javier
02 12 2017
Exemplo pegar Dados Certificado
//Example catch certificate data
//Exemple certificat de capture de données

_certificado is Certificate
_certificado = CertificateSelect()

EDT_DadosDoCertificado="" // Limpando edt do certificado
EDT_DadosDoCertificado+="=====NOVOS WINDEV 21 ===============" //Novos Windev 21//new windev 21//
EDT_DadosDoCertificado+=CR+"Nome Completo Emissor [ "+_certificado.FullIssuer+" ] "
EDT_DadosDoCertificado+=CR+"Numero Associado ["+_certificado.Empreinte+" ]" // Em Frances // Em Ingles (Fingerprint)
EDT_DadosDoCertificado+=CR+"-Objeto [ "+_certificado.Objet+" ]" // Em Frances // Em Ingles ( object )
EDT_DadosDoCertificado+=CR+"===== Já tinha Windev 20 ==============="
EDT_DadosDoCertificado+=CR+"Nome Resumido [ "+_certificado.Name+" ]"
EDT_DadosDoCertificado+=CR+"Inicio Validade [ +_certificado.StartValidityDate+" ]"
EDT_DadosDoCertificado+=CR+"Final Validade [ "+_certificado.EndValidityDate+" ]"
EDT_DadosDoCertificado+=CR+"Issuer- Emissora [ "+_certificado.Issuer+" ]"
EDT_DadosDoCertificado+=CR+"Reliability-Confianca [ "+_certificado.Reliability+" ]"
EDT_DadosDoCertificado+=CR+"Serial Numero [ "+_certificado.SerialNumber+" ]"
EDT_DadosDoCertificado+=CR+"Certificado Valido [ "+_certificado.ValidForSignature+" ]"
EDT_DadosDoCertificado+=CR+"Subject [ "+_certificado.Subject+" ]"
EDT_DadosDoCertificado+=CR+"Thumprint - Impressão Digital [ "+_certificado.ThumbPrint+" ]"
EDT_DadosDoCertificado+=CR+"======================================"
//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/06/curso-windev-certificado-002.html
https://www.youtube.com/watch?v=XYWltoQ8u4Q


De matos AMARILDO
16 06 2016

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local