From 90825e2392b2d70e43c7a25b8a3752299a933894 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdejava/koala/org/kde/koala/KSSLPeerInfo.java | 79 +++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 kdejava/koala/org/kde/koala/KSSLPeerInfo.java (limited to 'kdejava/koala/org/kde/koala/KSSLPeerInfo.java') diff --git a/kdejava/koala/org/kde/koala/KSSLPeerInfo.java b/kdejava/koala/org/kde/koala/KSSLPeerInfo.java new file mode 100644 index 00000000..114c50ef --- /dev/null +++ b/kdejava/koala/org/kde/koala/KSSLPeerInfo.java @@ -0,0 +1,79 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; + +/** + + KDE SSL Peer Data + This class contains data about the peer of an SSL connection. + @author George Staikos + + @short KDE SSL Peer Data. + @see KSSL + +*/ +public class KSSLPeerInfo implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected KSSLPeerInfo(Class dummy){} + + /** + Get a reference to the peer's certificate + @return a reference to the peer's certificate + + @short Get a reference to the peer's certificate + @see KSSLCertificate + */ + public native KSSLCertificate getPeerCertificate(); + /** + 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. + @return true if it matches + + @short Determine if the peer's certificate matches the address set with setPeerHost(). + @see #setPeerHost + */ + public native boolean certMatchesAddress(); + /** + 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. + @return true if it matches + + @short Determine if the given "common name" matches the address set with setPeerHost(). + @see #setPeerHost + */ + public native boolean cnMatchesAddress(String cn); + /** + 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) + @param host the hostname + @short Set the host that we are connected to. + */ + public native void setPeerHost(String host); + public native void setPeerHost(); + /** + Returns the host we are connected to. + @short Returns the host we are connected to. + */ + public native String peerHost(); + /** + Clear out the host name. + @short Clear out the host name. + */ + public native void reset(); + public KSSLPeerInfo() { + newKSSLPeerInfo(); + } + private native void newKSSLPeerInfo(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} -- cgit v1.2.3