org.kde.koala
Class KSSLPeerInfo

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

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

KDE SSL Peer Data This class contains data about the peer of an SSL connection.

Author:
George Staikos
See Also:
KSSL

Constructor Summary
  KSSLPeerInfo()
           
protected KSSLPeerInfo(java.lang.Class dummy)
           
 
Method Summary
 boolean certMatchesAddress()
          Determine if the peer's certificate matches the address set with setPeerHost().
 boolean cnMatchesAddress(java.lang.String cn)
          Determine if the given "common name" matches the address set with setPeerHost().
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 KSSLCertificate getPeerCertificate()
          Get a reference to the peer's certificate
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 java.lang.String peerHost()
          Returns the host we are connected to.
 void reset()
          Clear out the host name.
 void setPeerHost()
           
 void setPeerHost(java.lang.String host)
          Set the host that we are connected to.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KSSLPeerInfo

protected KSSLPeerInfo(java.lang.Class dummy)

KSSLPeerInfo

public KSSLPeerInfo()
Method Detail

getPeerCertificate

public KSSLCertificate getPeerCertificate()
Get a reference to the peer's certificate

Returns:
a reference to the peer's certificate
See Also:
KSSLCertificate

certMatchesAddress

public boolean certMatchesAddress()
Determine if the peer's certificate matches the address set with setPeerHost(). Note that this is a match in the "https" sense, taking into account, for instance, wildcards.

Returns:
true if it matches
See Also:
setPeerHost(java.lang.String)

cnMatchesAddress

public boolean cnMatchesAddress(java.lang.String cn)
Determine if the given "common name" matches the address set with setPeerHost(). Note that this is a match in the "https" sense, taking into account, for instance, wildcards.

Returns:
true if it matches
See Also:
setPeerHost(java.lang.String)

setPeerHost

public void setPeerHost(java.lang.String host)
Set the host that we are connected to. This is generally set by KSSL, and should be exactly what the user -thinks- he is connected to. (for instance, the host name in the url)

Parameters:
host - the hostname

setPeerHost

public void setPeerHost()

peerHost

public java.lang.String peerHost()
Returns the host we are connected to.


reset

public void reset()
Clear out the host name.


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?