org.kde.koala
Class KSSLCertChain

java.lang.Object
  extended by org.kde.koala.KSSLCertChain
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KSSLCertChain
extends java.lang.Object
implements org.kde.qt.QtSupport

KDE Certificate Chain Representation Class This class provides a representation for an X.509 certificate chain.

Author:
George Staikos
See Also:
KSSL, KSSLCertificate, KSSLPeerInfo

Constructor Summary
  KSSLCertChain()
          Construct a KSSLCertChain object
protected KSSLCertChain(java.lang.Class dummy)
           
 
Method Summary
 int depth()
          Determine the number of entries (depth) of the chain.
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 boolean isValid()
          Determine if this represents a valid certificate chain
 KSSLCertChain replicate()
          Do a deep copy of the certificate chain.
 void setCertChain(java.lang.String[] chain)
          Set the certificate chain as a list of base64 encoded X.509 certificates.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KSSLCertChain

protected KSSLCertChain(java.lang.Class dummy)

KSSLCertChain

public KSSLCertChain()
Construct a KSSLCertChain object

Method Detail

isValid

public boolean isValid()
Determine if this represents a valid certificate chain

Returns:
true if it is a valid certificate chain

replicate

public KSSLCertChain replicate()
Do a deep copy of the certificate chain. This is an expensive operation, and you are responsible for deleting the returned object yourself.

Returns:
pointer to a new certificate chain object

setCertChain

public void setCertChain(java.lang.String[] chain)
Set the certificate chain as a list of base64 encoded X.509 certificates.

Parameters:
chain - the certificate chain

depth

public int depth()
Determine the number of entries (depth) of the chain.

Returns:
the number of entries in the certificate chain

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

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


isDisposed

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