org.kde.koala

Class KSSLPKCS7

public class KSSLPKCS7 extends Object implements QtSupport

KDE PKCS#7 Certificate This class represents a PKCS#7 certificate

Author: George Staikos

See Also: KSSL

UNKNOWN: KDE PKCS#7 Certificate.

Constructor Summary
protected KSSLPKCS7(Class dummy)
KSSLPKCS7()
Method Summary
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
static KSSLPKCS7fromString(String base64)
Create a KSSLPKCS7 object from a Base64 in a String.
KSSLCertificategetCertificate()
Get the bottom level X.509 certificate.
KSSLCertChaingetChain()
Get the certificate chain.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisValid()
Return true if the chain is valid.
static KSSLPKCS7loadCertFile(String filename)
Create a KSSLPKCS7 object by reading a PKCS#7 file.
Stringname()
The name of this certificate.
booleantoFile(String filename)
Write the PKCS#7 to a file in raw mode.
StringtoString()
Convert to a Base64 string.

Constructor Detail

KSSLPKCS7

protected KSSLPKCS7(Class dummy)

KSSLPKCS7

public KSSLPKCS7()

Method Detail

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

fromString

public static KSSLPKCS7 fromString(String base64)
Create a KSSLPKCS7 object from a Base64 in a String.

Parameters: base64 the base64 representation of the certificate

Returns: a PKCS#7 object, or NULL on failure

UNKNOWN: Create a KSSLPKCS7 object from a Base64 in a String.

getCertificate

public KSSLCertificate getCertificate()
Get the bottom level X.509 certificate.

Returns: the certificate, or NULL on failure

See Also: KSSLCertificate

UNKNOWN: Get the bottom level X.

getChain

public KSSLCertChain getChain()
Get the certificate chain.

Returns: the certificate chain

See Also: KSSLCertChain

UNKNOWN: Get the certificate chain.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isValid

public boolean isValid()
Return true if the chain is valid.

UNKNOWN: Return true if the chain is valid.

loadCertFile

public static KSSLPKCS7 loadCertFile(String filename)
Create a KSSLPKCS7 object by reading a PKCS#7 file.

Parameters: filename the filename to read the certificate from

Returns: a PKCS#7 object, or NULL on failure

UNKNOWN: Create a KSSLPKCS7 object by reading a PKCS#7 file.

name

public String name()
The name of this certificate. This can be used to refer to the certificate instead of passing the object itself.

Returns: the name of the certificate

UNKNOWN: The name of this certificate.

toFile

public boolean toFile(String filename)
Write the PKCS#7 to a file in raw mode.

Parameters: filename the filename to write

Returns: true on success

UNKNOWN: Write the PKCS#7 to a file in raw mode.

toString

public String toString()
Convert to a Base64 string.

Returns: the PKCS#7 object in base64 form

UNKNOWN: Convert to a Base64 string.