org.kde.koala

Class KSSLPeerInfo

public class KSSLPeerInfo extends Object implements QtSupport

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

Author: George Staikos

See Also: KSSL

UNKNOWN: KDE SSL Peer Data.

Constructor Summary
protected KSSLPeerInfo(Class dummy)
KSSLPeerInfo()
Method Summary
booleancertMatchesAddress()
Determine if the peer's certificate matches the address set with setPeerHost().
booleancnMatchesAddress(String cn)
Determine if the given "common name" matches the address set with setPeerHost().
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
KSSLCertificategetPeerCertificate()
Get a reference to the peer's certificate
booleanisDisposed()
Has the wrapped C++ instance been deleted?
StringpeerHost()
Returns the host we are connected to.
voidreset()
Clear out the host name.
voidsetPeerHost(String host)
Set the host that we are connected to.
voidsetPeerHost()

Constructor Detail

KSSLPeerInfo

protected KSSLPeerInfo(Class dummy)

KSSLPeerInfo

public KSSLPeerInfo()

Method Detail

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: KSSLPeerInfo

UNKNOWN: Determine if the peer's certificate matches the address set with setPeerHost().

cnMatchesAddress

public boolean cnMatchesAddress(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: KSSLPeerInfo

UNKNOWN: Determine if the given "common name" matches the address set with setPeerHost().

dispose

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

finalize

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

getPeerCertificate

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

Returns: a reference to the peer's certificate

See Also: KSSLCertificate

UNKNOWN: Get a reference to the peer's certificate

isDisposed

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

peerHost

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

UNKNOWN: Returns the host we are connected to.

reset

public void reset()
Clear out the host name.

UNKNOWN: Clear out the host name.

setPeerHost

public void setPeerHost(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

UNKNOWN: Set the host that we are connected to.

setPeerHost

public void setPeerHost()