org.kde.koala
public class KSSLCertificate extends Object implements QtSupport
See Also: KSSL
UNKNOWN: KDE X.509 Certificate.
| Field Summary | |
|---|---|
| static int | Any |
| static int | ErrorReadingRoot |
| static int | Expired |
| static int | InvalidCA |
| static int | InvalidHost |
| static int | InvalidPurpose |
| static int | Irrelevant |
| static int | NoCARoot |
| static int | None |
| static int | NoSSL |
| static int | Ok |
| static int | PathLengthExceeded |
| static int | PrivateKeyFailed |
| static int | Rejected |
| static int | Revoked |
| static int | SelfSigned |
| static int | SelfSignedChain |
| static int | SignatureFailed |
| static int | SMIMEEncrypt |
| static int | SMIMESign |
| static int | SSLClient |
| static int | SSLServer |
| static int | Unknown
A CA certificate can be validated as Irrelevant when it was
not used to sign any other relevant certificate. |
| static int | Untrusted |
| Constructor Summary | |
|---|---|
| protected | KSSLCertificate(Class dummy) |
| KSSLCertificate(KSSLCertificate x)
Copy constructor. | |
| KSSLCertificate() | |
| Method Summary | |
|---|---|
| KSSLCertChain | chain()
Get a reference to the certificate chain. |
| void | dispose() Delete the wrapped C++ instance ahead of finalize() |
| protected void | finalize() Deletes the wrapped C++ instance |
| static KSSLCertificate | fromString(String cert)
Create an X.509 certificate from a base64 encoded string. |
| void | getEmails(String[] to)
FIXME: document |
| String | getIssuer()
Get the issuer of the certificate (X.509 map). |
| String | getKDEKey()
KDEKey is a concatenation "Subject (MD5)", mostly needed for SMIME.
|
| String | getKeyType()
Get the key type (RSA, DSA, etc). |
| String | getMD5Digest()
Get the MD5 digest of the certificate. |
| static String | getMD5DigestFromKDEKey(String k)
Aegypten semantics force us to search by MD5Digest only. |
| String | getMD5DigestText()
Get the MD5 digest of the certificate.
|
| String | getNotAfter()
Get the date that the certificate is valid until. |
| String | getNotBefore()
Get the date that the certificate becomes valid on. |
| String | getPublicKeyText()
Get the public key. |
| Calendar | getQDTNotAfter()
Get the date that the certificate is valid until. |
| Calendar | getQDTNotBefore()
Get the date that the certificate becomes valid on. |
| String | getSerialNumber()
Get the serial number of the certificate. |
| String | getSignatureText()
Get the signature. |
| String | getSubject()
Get the subject of the certificate (X.509 map). |
| boolean | isDisposed() Has the wrapped C++ instance been deleted? |
| boolean | isSigner()
Check if this is a signer certificate. |
| boolean | isValid()
Check if this is a valid certificate. |
| boolean | isValid(int p)
Check if this is a valid certificate. |
| protected int | processError(int ec) |
| KSSLCertificate | replicate()
Explicitly make a copy of this certificate. |
| int | revalidate()
Check if this is a valid certificate. |
| int | revalidate(int p)
Check if this is a valid certificate. |
| boolean | setCert(StringBuffer cert)
Re-set the certificate from a base64 string. |
| ArrayList | subjAltNames()
The alternate subject name. |
| byte[] | toDer()
Convert the certificate to DER (ASN.1) format. |
| byte[] | toNetscape()
Convert the certificate to Netscape format. |
| byte[] | toPem()
Convert the certificate to PEM (base64) format. |
| String | toString()
Convert this certificate to a string. |
| String | toText()
Convert the certificate to OpenSSL plain text format. |
| int | validate()
Check if this is a valid certificate. |
| int | validate(int p)
Check if this is a valid certificate. |
| static String | verifyText(int x)
Obtain the localized message that corresponds to a validation result. |
| KSSLX509V3 | x509V3Extensions()
Access the X.509v3 parameters. |
UNKNOWN: A CA certificate can be validated as Irrelevant when it was not used to sign any other relevant certificate.
Parameters: x the object to copy from
UNKNOWN: Copy constructor.
Returns: reference to the chain
UNKNOWN: Get a reference to the certificate chain.
Parameters: cert the certificate in base64 form
Returns: the X.509 certificate, or NULL
UNKNOWN: Create an X.
UNKNOWN: FIXME: document
Returns: the issuer
UNKNOWN: Get the issuer of the certificate (X.
UNKNOWN: KDEKey is a concatenation "Subject (MD5)", mostly needed for SMIME.
Returns: the key type as a string
UNKNOWN: Get the key type (RSA, DSA, etc).
Returns: the MD5 digest in a hexidecimal string
UNKNOWN: Get the MD5 digest of the certificate.
UNKNOWN: Aegypten semantics force us to search by MD5Digest only.
Returns: the MD5 digest in a hexidecimal string
UNKNOWN: Get the MD5 digest of the certificate.
Returns: the date as a string, localised
UNKNOWN: Get the date that the certificate is valid until.
Returns: the date as a string, localised
UNKNOWN: Get the date that the certificate becomes valid on.
Returns: the public key as a hexidecimal string
UNKNOWN: Get the public key.
Returns: the date
UNKNOWN: Get the date that the certificate is valid until.
Returns: the date
UNKNOWN: Get the date that the certificate becomes valid on.
Returns: the serial number as a string
UNKNOWN: Get the serial number of the certificate.
Returns: the signature in text format
UNKNOWN: Get the signature.
Returns: the subject
UNKNOWN: Get the subject of the certificate (X.
Returns: true if this is a signer certificate
UNKNOWN: Check if this is a signer certificate.
Returns: true if it is valid
UNKNOWN: Check if this is a valid certificate.
Parameters: p the purpose to validate for
Returns: true if it is valid
UNKNOWN: Check if this is a valid certificate.
Returns: a copy of the certificate
UNKNOWN: Explicitly make a copy of this certificate.
Returns: the result of the validation
UNKNOWN: Check if this is a valid certificate.
Parameters: p the purpose to validate for
Returns: the result of the validation
UNKNOWN: Check if this is a valid certificate.
Parameters: cert the certificate to set to
Returns: true on success
UNKNOWN: Re-set the certificate from a base64 string.
Returns: string list with subjectAltName
UNKNOWN: The alternate subject name.
Returns: the binary data of the DER encoding
UNKNOWN: Convert the certificate to DER (ASN.
Returns: the binary data of the Netscape encoding
UNKNOWN: Convert the certificate to Netscape format.
Returns: the binary data of the PEM encoding
UNKNOWN: Convert the certificate to PEM (base64) format.
Returns: the certificate in base64 format
UNKNOWN: Convert this certificate to a string.
Returns: the OpenSSL text encoding
UNKNOWN: Convert the certificate to OpenSSL plain text format.
Returns: the result of the validation
UNKNOWN: Check if this is a valid certificate.
Parameters: p the purpose to validate for
Returns: the result of the validation
UNKNOWN: Check if this is a valid certificate.
Parameters: x the code to look up
Returns: the message text corresponding to the validation code
UNKNOWN: Obtain the localized message that corresponds to a validation result.
Returns: reference to the extension object
See Also: KSSLX509V3
UNKNOWN: Access the X.