org.kde.koala

Class KSSLPKCS12

public class KSSLPKCS12 extends Object implements QtSupport

KDE PKCS#12 Certificate As of yet, this class is being defined. if you use it, let it be known that BC will break on you until this message is removed.

Author: George Staikos

See Also: KSSL KSSLCertificate

UNKNOWN: KDE PKCS#12 Certificate.

Constructor Summary
protected KSSLPKCS12(Class dummy)
KSSLPKCS12()
Method Summary
booleanchangePassword(String pold, String pnew)
Change the password of the PKCS#12 in memory.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
static KSSLPKCS12fromString(String base64, String password)
Create a KSSLPKCS12 object from a Base64 in a String.
static KSSLPKCS12fromString(String base64)
KSSLCertificategetCertificate()
Get the X.509 certificate.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisValid()
Check if the X.509 and private key are valid.
booleanisValid(int p)
Check if the X.509 and private key are valid.
static KSSLPKCS12loadCertFile(String filename, String password)
Create a KSSLPKCS12 object by reading a PKCS#12 file.
static KSSLPKCS12loadCertFile(String filename)
Stringname()
The name of this certificate.
protected booleanparse(String pass)
intrevalidate()
Check the X.509 and private key to make sure they're valid.
intrevalidate(int p)
Check the X.509 and private key to make sure they're valid.
booleantoFile(String filename)
Write the PKCS#12 to a file in raw mode.
StringtoString()
Convert to a Base64 string.
intvalidate()
Check the X.509 and private key to make sure they're valid.
intvalidate(int p)
Check the X.509 and private key to make sure they're valid.

Constructor Detail

KSSLPKCS12

protected KSSLPKCS12(Class dummy)

KSSLPKCS12

public KSSLPKCS12()

Method Detail

changePassword

public boolean changePassword(String pold, String pnew)
Change the password of the PKCS#12 in memory.

Parameters: pold the old password pnew the new password

Returns: true on success

UNKNOWN: Change the password of the PKCS#12 in memory.

dispose

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

finalize

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

fromString

public static KSSLPKCS12 fromString(String base64, String password)
Create a KSSLPKCS12 object from a Base64 in a String.

Parameters: base64 the base64 encoded certificate password a password for the certificate if encrypted

Returns: the PKCS#12 object, or NULL on failure.

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

fromString

public static KSSLPKCS12 fromString(String base64)

getCertificate

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

Returns: the X.509 certificate for the PKCS#12 object, or NULL

UNKNOWN: Get the X.

isDisposed

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

isValid

public boolean isValid()
Check if the X.509 and private key are valid.

Returns: true if valid

UNKNOWN: Check if the X.

isValid

public boolean isValid(int p)
Check if the X.509 and private key are valid.

Parameters: p the purpose to validate for

Returns: true if valid

UNKNOWN: Check if the X.

loadCertFile

public static KSSLPKCS12 loadCertFile(String filename, String password)
Create a KSSLPKCS12 object by reading a PKCS#12 file.

Parameters: filename the filename of the certificate password a password for the certificate if encrypted

Returns: the PKCS#12 object, or NULL on failure.

UNKNOWN: Create a KSSLPKCS12 object by reading a PKCS#12 file.

loadCertFile

public static KSSLPKCS12 loadCertFile(String filename)

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.

parse

protected boolean parse(String pass)

revalidate

public int revalidate()
Check the X.509 and private key to make sure they're valid. Ignore any cached validation result.

Returns: the result of the validation

See Also: KSSLCertificate

UNKNOWN: Check the X.

revalidate

public int revalidate(int p)
Check the X.509 and private key to make sure they're valid. Ignore any cached validation result.

Parameters: p the purpose to validate for

Returns: the result of the validation

See Also: KSSLCertificate

UNKNOWN: Check the X.

toFile

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

Parameters: filename the file to write to

Returns: true on success

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

toString

public String toString()
Convert to a Base64 string.

Returns: the certificate in base64 form

UNKNOWN: Convert to a Base64 string.

validate

public int validate()
Check the X.509 and private key to make sure they're valid.

Returns: the result of the validation

See Also: KSSLCertificate

UNKNOWN: Check the X.

validate

public int validate(int p)
Check the X.509 and private key to make sure they're valid.

Parameters: p the purpose to validate for

Returns: the result of the validation

See Also: KSSLCertificate

UNKNOWN: Check the X.