X.509 certificate More...
Import Statement: | import com.canonical.Oxide 1.15 |
Since: | OxideQt 1.2 |
Instantiates: | OxideQSslCertificate |
SslCertificate represents a X.509 certificate provided by a remote server.
Information about the subject of the certificate can be discovered by calling getSubjectInfo. Information about the issuer of the certificate (the entity that signed it) can be discovered by calling getIssuerInfo. For self-signed certificates, this will return the same as getSubjectInfo.
For certificates that aren't self-signed, the issuer's certificate can be accessed via issuer.
effectiveDate : Date |
The start date for this certificate.
expiryDate : Date |
The expiry date for this certificate.
issuer : SslCertificate |
The issuer of this certificate, or null if the certificate is self-signed.
Returns the value of the field specified by attr for this certificate's issuer.
Possible values for attr are:
Constant | Description |
---|---|
SslCertificate.PrincipalAttrOrganizationName | 'O' - The name of the organization. |
SslCertificate.PrincipalAttrCommonName | 'CN' - The Common Name. Generally used to store the host name. |
SslCertificate.PrincipalAttrLocalityName | 'L' - The locality. |
SslCertificate.PrincipalAttrOrganizationUnitName | 'OU' - The organizational unit name. |
SslCertificate.PrincipalAttrCountryName | 'C' - The country name. |
SslCertificate.PrincipalAttrStateOrProvinceName | 'ST' - The state or province name. |
Returns the value of the field specified by attr for this certificate's subject.
Possible values for attr are:
Constant | Description |
---|---|
SslCertificate.PrincipalAttrOrganizationName | 'O' - The name of the organization. |
SslCertificate.PrincipalAttrCommonName | 'CN' - The Common Name. Generally used to store the host name. |
SslCertificate.PrincipalAttrLocalityName | 'L' - The locality. |
SslCertificate.PrincipalAttrOrganizationUnitName | 'OU' - The organizational unit name. |
SslCertificate.PrincipalAttrCountryName | 'C' - The country name. |
SslCertificate.PrincipalAttrStateOrProvinceName | 'ST' - The state or province name. |