[Openrdfclient-svn] SF.net SVN: openrdfclient: [1] trunk
Status: Beta
Brought to you by:
nlalevee
From: <nla...@us...> - 2008-01-08 11:44:51
|
Revision: 1 http://openrdfclient.svn.sourceforge.net/openrdfclient/?rev=1&view=rev Author: nlalevee Date: 2008-01-08 03:44:53 -0800 (Tue, 08 Jan 2008) Log Message: ----------- First import. This version is actually very basic but does work Added Paths: ----------- trunk/ trunk/net.sf.openrdfclient.rcp/ trunk/net.sf.openrdfclient.rcp/.classpath trunk/net.sf.openrdfclient.rcp/.project trunk/net.sf.openrdfclient.rcp/META-INF/ trunk/net.sf.openrdfclient.rcp/META-INF/MANIFEST.MF trunk/net.sf.openrdfclient.rcp/build.properties trunk/net.sf.openrdfclient.rcp/icons/ trunk/net.sf.openrdfclient.rcp/icons/add.png trunk/net.sf.openrdfclient.rcp/icons/alt_about.gif trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.icns trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.ico trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.xpm trunk/net.sf.openrdfclient.rcp/icons/alt_window_16.gif trunk/net.sf.openrdfclient.rcp/icons/alt_window_32.gif trunk/net.sf.openrdfclient.rcp/icons/delete.png trunk/net.sf.openrdfclient.rcp/icons/goFirst.png trunk/net.sf.openrdfclient.rcp/icons/goLast.png trunk/net.sf.openrdfclient.rcp/icons/goNext.png trunk/net.sf.openrdfclient.rcp/icons/goPrevious.png trunk/net.sf.openrdfclient.rcp/icons/occur-must.png trunk/net.sf.openrdfclient.rcp/icons/occur-mustnot.png trunk/net.sf.openrdfclient.rcp/icons/occur-should.png trunk/net.sf.openrdfclient.rcp/icons/occur-unknown.png trunk/net.sf.openrdfclient.rcp/icons/openFile.png trunk/net.sf.openrdfclient.rcp/icons/refresh.png trunk/net.sf.openrdfclient.rcp/icons/remove.png trunk/net.sf.openrdfclient.rcp/icons/search.png trunk/net.sf.openrdfclient.rcp/icons/splash.bmp trunk/net.sf.openrdfclient.rcp/openrdfclient.product trunk/net.sf.openrdfclient.rcp/plugin.xml trunk/net.sf.openrdfclient.rcp/src/ trunk/net.sf.openrdfclient.rcp/src/net/ trunk/net.sf.openrdfclient.rcp/src/net/sf/ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/AuthSSLX509TrustManager.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/SSLContextInstaller.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/SSLProtocolSocketFactory.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/Application.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationActionBarAdvisor.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationWorkbenchAdvisor.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationWorkbenchWindowAdvisor.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/OpenRDFClientPlugin.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/Perspective.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/View.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/AbstractComposite.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/BrowseComposite.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/BrowseListener.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/CompositeUtils.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/ErrorDialog.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/InstallSSLDialog.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/NamespaceManager.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/QueryMakerListener.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/RepositoryAwareComposite.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/RepositoryListener.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/RepositoryManagerComposite.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/StatementsComposite.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/StmtQueryComposite.java trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/views/TableSorter.java trunk/net.sf.openrdfclient.rcp/test/ trunk/net.sf.openrdfclient.rcp/test/net/ trunk/net.sf.openrdfclient.rcp/test/net/sf/ trunk/net.sf.openrdfclient.rcp/test/net/sf/openrdfclient/ trunk/net.sf.openrdfclient.rcp/test/net/sf/openrdfclient/rcp/ trunk/net.sf.openrdfclient.rcp/test/net/sf/openrdfclient/rcp/views/ trunk/net.sf.openrdfclient.rcp/test/net/sf/openrdfclient/rcp/views/NamespaceManagerTest.java Property changes on: trunk/net.sf.openrdfclient.rcp ___________________________________________________________________ Name: svn:ignore + bin Added: trunk/net.sf.openrdfclient.rcp/.classpath =================================================================== --- trunk/net.sf.openrdfclient.rcp/.classpath (rev 0) +++ trunk/net.sf.openrdfclient.rcp/.classpath 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="src" path="test"/> + <classpathentry exported="true" kind="lib" path="lib/commons-codec-1.3.jar"/> + <classpathentry exported="true" kind="lib" path="lib/slf4j-api-1.4.3.jar" sourcepath="lib/slf4j-api-sources-1.4.3.jar"/> + <classpathentry exported="true" kind="lib" path="lib/slf4j-log4j12-1.4.3.jar" sourcepath="lib/slf4j-log4j12-sources-1.4.3.jar"/> + <classpathentry exported="true" kind="lib" path="lib/commons-logging-adapters-1.1.jar"/> + <classpathentry exported="true" kind="lib" path="lib/log4j-1.2.13.jar" sourcepath="lib/log4j-sources-1.2.13.jar"/> + <classpathentry exported="true" kind="lib" path="lib/commons-httpclient-3.0.1.jar" sourcepath="lib/commons-httpclient-sources-3.0.1.jar"/> + <classpathentry exported="true" kind="lib" path="lib/commons-logging-1.1.jar" sourcepath="lib/commons-logging-sources-1.1.jar"/> + <classpathentry exported="true" kind="lib" path="lib/swtplus-1.0.jar"/> + <classpathentry exported="true" kind="lib" path="lib/sesame-2.0-rc2.jar" sourcepath="lib/sesame-sources-2.0-rc2.jar"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> + <classpathentry kind="output" path="bin"/> +</classpath> Property changes on: trunk/net.sf.openrdfclient.rcp/.classpath ___________________________________________________________________ Name: svn:executable + * Added: trunk/net.sf.openrdfclient.rcp/.project =================================================================== --- trunk/net.sf.openrdfclient.rcp/.project (rev 0) +++ trunk/net.sf.openrdfclient.rcp/.project 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>net.sf.openrdfclient.rcp</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> Property changes on: trunk/net.sf.openrdfclient.rcp/.project ___________________________________________________________________ Name: svn:executable + * Added: trunk/net.sf.openrdfclient.rcp/META-INF/MANIFEST.MF =================================================================== --- trunk/net.sf.openrdfclient.rcp/META-INF/MANIFEST.MF (rev 0) +++ trunk/net.sf.openrdfclient.rcp/META-INF/MANIFEST.MF 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,20 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: OpenRDF Client Plug-in +Bundle-SymbolicName: net.sf.openrdfclient.rcp;singleton:=true +Bundle-Version: 1.0.0 +Bundle-Activator: net.sf.openrdfclient.rcp.OpenRDFClientPlugin +Bundle-Localization: plugin +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime +Eclipse-LazyStart: true +Bundle-ClassPath: lib/sesame-2.0-rc2.jar, + ., + lib/swtplus-1.0.jar, + lib/commons-logging-1.1.jar, + lib/commons-httpclient-3.0.1.jar, + lib/log4j-1.2.13.jar, + lib/commons-logging-adapters-1.1.jar, + lib/slf4j-log4j12-1.4.3.jar, + lib/slf4j-api-1.4.3.jar, + lib/commons-codec-1.3.jar Property changes on: trunk/net.sf.openrdfclient.rcp/META-INF/MANIFEST.MF ___________________________________________________________________ Name: svn:executable + * Added: trunk/net.sf.openrdfclient.rcp/build.properties =================================================================== --- trunk/net.sf.openrdfclient.rcp/build.properties (rev 0) +++ trunk/net.sf.openrdfclient.rcp/build.properties 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,14 @@ +source.. = src/ +output.. = bin/ +bin.includes = plugin.xml,\ + META-INF/,\ + .,\ + lib/sesame-2.0-rc2.jar,\ + lib/swtplus-1.0.jar,\ + lib/commons-logging-1.1.jar,\ + lib/commons-httpclient-3.0.1.jar,\ + lib/log4j-1.2.13.jar,\ + lib/commons-logging-adapters-1.1.jar,\ + lib/slf4j-log4j12-1.4.3.jar,\ + lib/slf4j-api-1.4.3.jar,\ + lib/commons-codec-1.3.jar Property changes on: trunk/net.sf.openrdfclient.rcp/build.properties ___________________________________________________________________ Name: svn:executable + * Name: svn:keywords + Date Revision Author HeadURL Id Name: svn:eol-style + native Added: trunk/net.sf.openrdfclient.rcp/icons/add.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/add.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/alt_about.gif =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/alt_about.gif ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/gif Added: trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.icns =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.icns ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + application/octet-stream Added: trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.ico =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.ico ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + application/octet-stream Added: trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.xpm =================================================================== --- trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.xpm (rev 0) +++ trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.xpm 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,307 @@ +/* XPM */ +static char * icon48_xpm[] = { +"48 48 256 2", +" c #4B4B3B3B9090", +". c #0D0D0E0E5454", +"X c #11110E0E5B5B", +"o c #17170F0F6363", +"O c #1D1D13136969", +"+ c #212114146C6C", +"@ c #252514147171", +"# c #282811116C6C", +"$ c #26260D0D6363", +"% c #22220B0B5E5E", +"& c #1C1C0B0B5A5A", +"* c #1C1C0B0B5252", +"= c #1B1B05055353", +"- c #161606064D4D", +"; c #161605054949", +": c #111104044848", +"> c #131304044545", +", c #131305054242", +"< c #141410105E5E", +"1 c #2C2C15157373", +"2 c #2B2B1B1B7575", +"3 c #343416167272", +"4 c #313113136E6E", +"5 c #222209095757", +"6 c #1B1B06064D4D", +"7 c #15150B0B4242", +"8 c #13130C0C5555", +"9 c #2E2E1B1B7878", +"0 c #33331F1F7C7C", +"q c #343418187878", +"w c #3B3B1C1C7575", +"e c #2E2E10106767", +"r c #1B1B07074747", +"t c #18180B0B4646", +"y c #151513136262", +"u c #1A1A15156464", +"i c #34341F1F7777", +"p c #40401E1E8080", +"a c #42421B1B7A7A", +"s c #3B3B15157474", +"d c #2B2B0B0B5B5B", +"f c #222207075252", +"g c #373727277A7A", +"h c #474724248484", +"j c #393915156E6E", +"k c #373711116A6A", +"l c #343413136363", +"z c #232319196E6E", +"x c #292919197070", +"c c #3C3C2C2C8282", +"v c #444431318585", +"b c #494934348A8A", +"n c #505026268A8A", +"m c #3D3D1B1B6E6E", +"M c #31310E0E5C5C", +"N c #2B2B0D0D5353", +"B c #222207074A4A", +"V c #52523C3C9292", +"C c #58583C3C9494", +"Z c #5D5D44449797", +"A c #5C5C2E2E9292", +"S c #676733339595", +"D c #424228287575", +"F c #29290A0A4F4F", +"G c #6C6C4A4A9E9E", +"H c #72725454A7A7", +"J c #8C8C6D6DB2B2", +"K c #343424246E6E", +"L c #3A3A23236A6A", +"P c #3A3A1C1C6767", +"I c #24240A0A4B4B", +"U c #151518186161", +"Y c #76766F6FA5A5", +"T c #ADAD9191CCCC", +"R c #98988989D3D3", +"E c #45453B3B8686", +"W c #3C3C35357979", +"Q c #363631317575", +"! c #32322D2D6B6B", +"~ c #323229296363", +"^ c #30301F1F6262", +"/ c #323218185E5E", +"( c #272707074B4B", +") c #202028286C6C", +"_ c #1E1E1D1D6868", +"` c #9A9A8282BBBB", +"' c #C8C8B3B3D3D3", +"] c #B3B3AFAFE7E7", +"[ c #84847272C6C6", +"{ c #58585757A3A3", +"} c #3F3F3C3C8A8A", +"| c #3B3B3A3A8484", +" . c #414139397D7D", +".. c #3D3D39397A7A", +"X. c #37372E2E6E6E", +"o. c #2C2C21215A5A", +"O. c #2E2E1B1B5B5B", +"+. c #F5F5EFEFF5F5", +"@. c #656566669A9A", +"#. c #47474B4B8E8E", +"$. c #3C3C44447B7B", +"%. c #444442428080", +"&. c #45453E3E8181", +"*. c #40403C3C8181", +"=. c #3D3D33337474", +"-. c #3B3B30306E6E", +";. c #38382D2D6969", +":. c #303026265D5D", +">. c #2C2C15155A5A", +",. c #1F1F1C1C7070", +"<. c #25251E1E7171", +"1. c #59595C5C9191", +"2. c #4D4D53538989", +"3. c #4C4C49498484", +"4. c #484845458585", +"5. c #494941418585", +"6. c #494940408181", +"7. c #2F2F1C1C5353", +"8. c #2B2B28287676", +"9. c #323231317F7F", +"0. c #545452528B8B", +"q. c #51514E4E8989", +"w. c #4E4E4B4B8C8C", +"e. c #4C4C47478686", +"r. c #46463D3D7E7E", +"t. c #434336367A7A", +"y. c #2B2B13135555", +"u. c #47473D3D8D8D", +"i. c #575757578E8E", +"p. c #48483E3E7F7F", +"a. c #46463A3A7D7D", +"s. c #424235357575", +"d. c #404034347171", +"f. c #BFBFCBCBFAFA", +"g. c #B8B8A8A8DDDD", +"h. c #5E5E60609292", +"j. c #565655558C8C", +"k. c #4B4B44448282", +"l. c #454539397B7B", +"z. c #434338387878", +"x. c #3F3F32326D6D", +"c. c #3D3D30306969", +"v. c #3A3A2E2E6363", +"b. c #36362A2A5C5C", +"n. c #343424245555", +"m. c #30301E1E4D4D", +"M. c #49493C3C8282", +"N. c #5E5E4F4F8C8C", +"B. c #56563B3B8B8B", +"V. c #545407078585", +"C. c #424234347272", +"Z. c #9797A4A4F7F7", +"A. c #444436367676", +"S. c #7D7D7979D5D5", +"D. c #464640408A8A", +"F. c #44444B4B8282", +"G. c #414107077777", +"H. c #71716161C1C1", +"J. c #303039397979", +"K. c #8E8E8E8EE6E6", +"L. c #404033338B8B", +"P. c #4A4A45458C8C", +"I. c #46463A3A8080", +"U. c #363629295454", +"Y. c #303022224848", +"T. c #424237377575", +"R. c #2E2E1D1D6363", +"E. c #79798383EAEA", +"W. c #74747B7BE4E4", +"Q. c #6D6D7676D6D6", +"!. c #6A6A7171CECE", +"~. c #66666969C6C6", +"^. c #62626565BCBC", +"/. c #5F5F6060B5B5", +"(. c #5B5B5B5BACAC", +"). c #535353539898", +"_. c #4F4F4F4FA4A4", +"`. c #54544D4DA4A4", +"'. c #323204046B6B", +"]. c #303035357979", +"[. c #313122224343", +"{. c #5A5A5B5BB7B7", +"}. c #484846468080", +"|. c #454541417575", +" X c #4B4B31318282", +".X c #47473C3C8484", +"XX c #3E3E35356E6E", +"oX c #2F2F26264040", +"OX c #2B2B23233A3A", +"+X c #262619195C5C", +"@X c #252515155A5A", +"#X c #55555151B3B3", +"$X c #3C3C2D2D5D5D", +"%X c #39392F2F5656", +"&X c #37372D2D5050", +"*X c #25251F1F3030", +"=X c #24241D1D4343", +"-X c #202013135656", +";X c #41413B3B6C6C", +":X c #444442429696", +">X c #212100005E5E", +",X c #444436367272", +"<X c #444436366F6F", +"1X c #424236366868", +"2X c #3F3F34346161", +"3X c #3C3C32325A5A", +"4X c #34342A2A4A4A", +"5X c #21211B1B2121", +"6X c #22221C1C6363", +"7X c #2D2D01015E5E", +"8X c #20201B1B2525", +"9X c #49492F2F7B7B", +"0X c #434334346C6C", +"qX c #323229294545", +"wX c #1C1C10104F4F", +"eX c #222217176363", +"rX c #37371E1E6B6B", +"tX c #424232326E6E", +"yX c #444433336969", +"uX c #424233336565", +"iX c #1E1E1A1A1E1E", +"pX c #161601014C4C", +"aX c #1C1C11115454", +"sX c #252503035B5B", +"dX c #414131316A6A", +"fX c #22221F1F7878", +"gX c #272724246767", +"hX c #1D1D16165E5E", +"jX c #131305055151", +"kX c #40402F2F6464", +"lX c #111107074E4E", +"zX c #0C0C05054B4B", +"xX c #22221E1E5757", +"cX c #1A1A0D0D4D4D", +"vX c #16160B0B4D4D", +"bX c #060604044747", +"nX c #040403034343", +"mX c #3B3B27276565", +"MX c #0E0E03034141", +"NX c #111106064A4A", +"BX c #0E0E04044646", +"VX c #111105053B3B", +"CX c #0D0D01013A3A", +"ZX c #030305053F3F", +"AX c #0F0F0F0F4C4C", +"SX c #020207073B3B", +"DX c #0D0D03034646", +"FX c #0B0B02023F3F", +"GX c #0D0D02023434", +"HX c #0A0A0E0E4444", +"JX c #161614145252", +"KX c #0B0B04044646", +"LX c #0A0A03034444", +"PX c #1D1D21215757", +"IX c #090910104040", +"UX c #18181E1E5353", +" ", +" . . . . X X o o o o O + + @ @ @ @ @ @ @ # # # # # # $ $ % % & & & & * = - - - ; : > > , , , ", +" . . X X < < o o O O + @ 1 2 2 1 1 1 1 1 1 1 1 3 4 # # $ $ $ % % % 5 = = 6 6 - ; ; > > , , 7 ", +" . 8 < < < o O O + @ @ 2 9 9 0 0 q q q q q q q w 3 4 4 e e $ $ $ $ % 5 = = 6 6 6 ; ; > > r t ", +" . X < y u O O + @ 1 2 i 0 0 p p p p p p p a a p a s 3 4 4 e e e e d 5 5 f f 6 6 6 ; ; r r t ", +" X < y u O + + @ 2 9 0 g p p h h h h h h h p h h a a s s j k k j l d d 5 5 f f 6 6 r r r r r ", +" X < y O z x x 9 0 g c v b n n n n n n n n n n n h a a s s j j m l M d d N f f B B B B r r r ", +" < y u + z 2 0 c c b V C Z C C A A A A A S S S n h D w w m m m m k l M d d N f F F F B r r r ", +" < y O z z 9 c b V Z G H H H G S G G J J H V v c g g K K K K L P l l l M M N N N N I B B r r ", +" U u + z x i v C H Y J J J J H J T R H V E W W Q Q Q Q ! ! ! ~ ^ ^ / / M M M M M N ( B B r r ", +" ) _ z x 9 g b Z Y ` ' ' ' T T ] [ { } | .........W W Q Q X.! ~ ~ o.O./ / / / N F ( B B B r ", +" ) ) z x i c V G J ' +.+.+.+.] [ @.#.$.%.%.%.&.*. . .....W =.-.X.;.~ :.o.O.^ >.N F ( B B B B ", +" ) ,.<.2 g v C H J ' +.+.+.+.T Y 1.2.3.4.4.4.5.6.&.&. . ...W =.=.-.;.~ :.o.7.>.N F F ( B I I ", +" ) ,.<.8.9.b C H J T +.+.+.' J @.1.0.q.q.w.e.4.5.6.&.r. . .t.W =.=.-.;.~ :.o.7.y.N F ( ( I I ", +" 8.8.8.9.| u.C G J T +.+.' ` Y @.1.i.0.q.q.e.e.5.6.p.r.a. .t.t.s.d.d.-.;.~ :.7.7.y.F F ( I I ", +" 9.c c c v b A S H ' f.g.` Y @.h.1.i.j.0.q.q.e.k.6.p.r.a.l.t.z.s.s.d.x.c.v.b.n.m.7.N F F F I ", +" <.g M.N.B.B.n V.J f.R J @.h.h.1.i.i.j.j.0.q.3.k.6.p.r.a.l.l.z.s.C.d.x.x.c.v.b.n.m.y.N F F F ", +" + x i v B.Z Z G g.Z.[ @.2.i.i.j.j.j.j.j.0.q.3.k.6.p.p.a.l.l.A.s.C.C.d.x.c.v.b.n.m.7.y.N N y. ", +" O # 3 w p n Z ` f.S.H D.F.q.0.0.0.0.j.0.q.q.3.k.6.p.r.a.a.l.A.s.s.C.d.x.x.c.v.b.n.m.y.y.y.y. ", +" O # 4 s a G.V.T Z.H.V J.%.e.w.q.0.0.0.0.q.q.e.k.6.p.r.a.a.l.z.A.s.C.d.d.x.c.v.b.n.m.7.>.y.y. ", +" O # 4 s w G.A f.K.H L...4.P.w.w.w.q.q.q.q.e.e.5.6.M.I.I.a.a.l.z.A.s.d.d.x.c.v.v.U.Y.7.O.>.y. ", +" $ # 4 3 s G.G f.S.Z 9.*.D.P.P.w.w.w.w.w.e.e.5.5.M.M.I.I.a.a.l.z.T.s.d.d.x.x.c.v.U.Y.m.R.>.>. ", +" E.E.W.W.W.W.E.Z.E.W.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.!.!.!.!.!.~.~.~.~.~.~.^.^.^.^.^./././.(.{ { )._.`._. ", +" + # 3 w s '.` f.H.V ].*.D.P.P.P.P.P.P.P.5.5.5.M.M.M.I.I.a.l.z.z.T.T.s.d.d.x.c.v.U.Y.[.^ O.>. ", +" ~.~.~.~.~.~.K.Z.S.~.{.^.^.^.^.^.^.^.^././././././.(.(.(.(.(.(.{ { { { { ).).).w.w.}.|.P.u.} ", +" .I.6. X X XT f.H.b ].*.E D.D.D.D.5.5..X.XM.M.I.I.a.a.l.l.z.z.T.T.T.d.XXx.c.v.b.U.oXOXR.+X@X ", +" E.E.E.W.W.W.K.Z.E.W.Q.Q.Q.Q.Q.Q.Q.Q.!.!.!.!.!.!.~.~.~.~.~.~.^.^.^.^.^./././.(.{ { ).).#X_._. ", +" & % $ e '.= H f.H.b 8.W *.E E E .X.X.XI.I.I.I.a.a.l.l.z.z.T.T.T.C.XXXXc.v.$X%X&XY.*X=X2 @X-X ", +" {.{.{.{.{.#X~.Z.W.~.{.{./././././././././.(.(.(.(.(.(.(.{ { { { { { ).).).w.w.3.}.;X%.:X} } ", +" & & % $ e >XV.f.S.C K X.W t. . .l.l.t.t.t.t.A.A.A.,X,X,X,X,X<X;X1X1X2X3X%X&X4XoX*X5Xo.6X-X-X ", +" & & % $ $ >X7X` Z.Z D ! =.=.s.t.t.t.A.A.s.A.,X,X,X,X<X<X<X<X;X1X2X2X3X%X&X4XoXOX8X5X<.@X-X-X ", +" 8 & & $ e K 9XJ f.^. XK X.=.=.s.s.s.s.s.C.C.C.C.<X0X0X0X1X1X1X2X2X3X%X&X4XqXOX*X8X=X<.-X-XwX ", +" 8 & eXK k.@.M. Xg.E.B.rX~ -.d.d.C.C.C.C.C.tX0X0X0XyXyX1X1XuX2X2X3X%X&X4XqXoXOX8XiX6XeX-X-XwX ", +" 6XQ h.Y N.K e pXB.f./.9Xo.;.-.x.d.tXtXtXtXtX0X0XyXyXyXuXuX2X2X3X%X&X4XqXoXOX*XiX=X_ aX-XaXwX ", +" Y Y .R.@X% sX= 7XT Z.V P :.;.c.x.x.x.tXdXdXdXyXyXuXuX2X2X3X3X%X&X4XqXoXOX*X8X*XfXaXaXaXwXwX ", +" gXhX& * & 5 5 sXjXa ] S.9X/ ~ v.c.dXdXdXdXdXuXuXuXkX2X2X3X%X%X&X4XqXoXOX*X8XiX<.hXwXwXaXwXwX ", +" 8 lXlXjX= * 5 5 = zX9X] H.D 7.b.v.v.kXc.kXkXkXkXkX2X$X3X%X&X&X4XqXoXOX*X8XiXxXhXwXcXcXwXwXwX ", +" zXzXlXlXjX= = f f sXD Y ] ~.D 7.n.b.v.v.kXkXkXkX$X$X%X%X&X4XqXoXoXOX*X8X5XgXu cXvXvXcXcXwXwX ", +" bXbXzXlXlX- = * @XX.h.e D T S.D n.m.b.$X$X$X$X$X%X%X&X&X4XqXoXOX*X8X8X*X<.hXvX; ; vXvXvXcXwX ", +" nXbXzXzXlXlX- -XX.Y R.pXpXP J K.Z mXm.n.U.U.U.U.U.4X4XY.oXOX*X8X8X8X=X,.aXvX; > > > t t t cX ", +" nXbXbXzXzXlXaXXXY +Xf = f = 7XtXR R mXn.Y.[.[.[.[.OX*X*X8X5X*X=X,.u vXvX; > > MXMX, 7 t t ", +" nXnXnXbXzXvX-.Y +XcX6 6 = = = d L B.G H `.X.:.7.m.=X=X=X=X=X6X,.u cXvXNX: BX> MXVXCXVX7 7 7 ", +" ZXZXnXbXAXgX@.+XvX; - - - - * @XR.>.sX>.R.i 0 x eXeXeXeXO hXaXcXvXNX: BXMXMXMXVXCXCXCXVX7 7 ", +" SXZXZXAXgXN.aXNX: : NXNXNX- * +X+X* 6 6 6 * * * * * * * vXvX- NX: DXBXMXMXFXCXCXCXCXGXVXVX7 ", +" SXSXHXgX0.JXKXLXKXKXDX: : NX* @X-X- - - - - - - - - - - NX: DXDXDXMXMXFXFXCXCXCXCXGXGXGXVXVX ", +" SXHXPX3.JXnXnXnXnXbXLXKXKXNXaX-XvX: : NX: : : : : : : BXDXDXLXMXMXFXFXCXCXCXCXGXGXGXGXGXGXGX ", +" IXUX$.AXZXZXZXZXnXnXnXLXLXNXJXvXBXDXBXBXBXBXDXDXDXDXLXDXLXLXFXFXFXFXCXCXCXCXGXGXGXGXGXGXGXGX ", +" "}; Property changes on: trunk/net.sf.openrdfclient.rcp/icons/alt_launcher.xpm ___________________________________________________________________ Name: svn:executable + * Added: trunk/net.sf.openrdfclient.rcp/icons/alt_window_16.gif =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/alt_window_16.gif ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/gif Added: trunk/net.sf.openrdfclient.rcp/icons/alt_window_32.gif =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/alt_window_32.gif ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/gif Added: trunk/net.sf.openrdfclient.rcp/icons/delete.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/delete.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/goFirst.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/goFirst.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/goLast.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/goLast.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/goNext.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/goNext.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/goPrevious.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/goPrevious.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/occur-must.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/occur-must.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/occur-mustnot.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/occur-mustnot.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/occur-should.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/occur-should.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/occur-unknown.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/occur-unknown.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/openFile.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/openFile.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/refresh.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/refresh.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/remove.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/remove.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/search.png =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/search.png ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + image/png Added: trunk/net.sf.openrdfclient.rcp/icons/splash.bmp =================================================================== (Binary files differ) Property changes on: trunk/net.sf.openrdfclient.rcp/icons/splash.bmp ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + application/octet-stream Added: trunk/net.sf.openrdfclient.rcp/openrdfclient.product =================================================================== --- trunk/net.sf.openrdfclient.rcp/openrdfclient.product (rev 0) +++ trunk/net.sf.openrdfclient.rcp/openrdfclient.product 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?pde version="3.1"?> + +<product name="OpenRDF Client" id="net.sf.openrdfclient.rcp.product" application="net.sf.openrdfclient.rcp.application" useFeatures="false"> + + <configIni use="default"/> + + <launcherArgs> + </launcherArgs> + + <windowImages/> + + <launcher> + <solaris/> + <win useIco="false"> + <bmp/> + </win> + </launcher> + + <vm> + </vm> + + <plugins> + <plugin id="com.ibm.icu"/> + <plugin id="net.sf.openrdfclient.rcp"/> + <plugin id="org.eclipse.core.commands"/> + <plugin id="org.eclipse.core.contenttype"/> + <plugin id="org.eclipse.core.databinding"/> + <plugin id="org.eclipse.core.expressions"/> + <plugin id="org.eclipse.core.jobs"/> + <plugin id="org.eclipse.core.runtime"/> + <plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/> + <plugin id="org.eclipse.equinox.app"/> + <plugin id="org.eclipse.equinox.common"/> + <plugin id="org.eclipse.equinox.preferences"/> + <plugin id="org.eclipse.equinox.registry"/> + <plugin id="org.eclipse.help"/> + <plugin id="org.eclipse.jface"/> + <plugin id="org.eclipse.jface.databinding"/> + <plugin id="org.eclipse.osgi"/> + <plugin id="org.eclipse.swt"/> + <plugin id="org.eclipse.swt.carbon.macosx" fragment="true"/> + <plugin id="org.eclipse.ui"/> + <plugin id="org.eclipse.ui.carbon" fragment="true"/> + <plugin id="org.eclipse.ui.workbench"/> + </plugins> + +</product> Property changes on: trunk/net.sf.openrdfclient.rcp/openrdfclient.product ___________________________________________________________________ Name: svn:executable + * Added: trunk/net.sf.openrdfclient.rcp/plugin.xml =================================================================== --- trunk/net.sf.openrdfclient.rcp/plugin.xml (rev 0) +++ trunk/net.sf.openrdfclient.rcp/plugin.xml 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.2"?> +<plugin + > + + <extension + id="application" + name="OpenRDF Client" + point="org.eclipse.core.runtime.applications"> + <application> + <run + class="net.sf.openrdfclient.rcp.Application"> </run> + </application> + </extension> + <extension + point="org.eclipse.ui.perspectives"> + <perspective + name="ORC Perspective" class="net.sf.openrdfclient.rcp.Perspective" + id="net.sf.openrdfclient.rcp.perspective"> + </perspective> + </extension> + <extension + point="org.eclipse.ui.views"> + <view + class="net.sf.openrdfclient.rcp.View" + id="net.sf.openrdfclient.rcp.view" + name="Main"/> + </extension> + <extension + id="product" + name="OpenRDF Client" + point="org.eclipse.core.runtime.products"> + <product + application="net.sf.openrdfclient.rcp.application" + name="OpenRDF Client"> + <property + name="appName" + value="OpenRDF Client"> + </property> + </product> + </extension> + +</plugin> Property changes on: trunk/net.sf.openrdfclient.rcp/plugin.xml ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/xml Name: svn:keywords + Date Revision Author HeadURL Id Name: svn:eol-style + native Added: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/AuthSSLX509TrustManager.java =================================================================== --- trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/AuthSSLX509TrustManager.java (rev 0) +++ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/AuthSSLX509TrustManager.java 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,115 @@ +/* + * ==================================================================== + * + * Copyright 2002-2004 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * <http://www.apache.org/>. + * + * Modified by $Author$ on $Date$. + * + * $Id$ + * + */ + +package net.sf.openrdf.core.ssl; + +import java.security.cert.X509Certificate; + +import javax.net.ssl.X509TrustManager; +import java.security.cert.CertificateException; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * <p> + * AuthSSLX509TrustManager can be used to extend the default + * {@link X509TrustManager} with additional trust decisions. + * </p> + * + * @author <a href="mailto:ol...@ur...">Oleg Kalnichevski</a> + * + * <p> + * DISCLAIMER: HttpClient developers DO NOT actively support this component. The + * component is provided as a reference material, which may be inappropriate for + * use without additional customization. + * </p> + */ + +public class AuthSSLX509TrustManager implements X509TrustManager { + private X509TrustManager defaultTrustManager = null; + + /** Log object for this class. */ + private final Log LOG = LogFactory.getLog(AuthSSLX509TrustManager.class); + + /** + * Constructor for AuthSSLX509TrustManager. + */ + public AuthSSLX509TrustManager(final X509TrustManager defaultTrustManager) { + super(); + if (defaultTrustManager == null) { + throw new IllegalArgumentException("Trust manager may not be null"); + } + this.defaultTrustManager = defaultTrustManager; + } + + /** + * @see javax.net.ssl.X509TrustManager#checkClientTrusted(X509Certificate[],String + * authType) + */ + public void checkClientTrusted(X509Certificate[] certificates, String authType) throws CertificateException { + if (LOG.isInfoEnabled() && certificates != null) { + for (int c = 0; c < certificates.length; c++) { + X509Certificate cert = certificates[c]; + LOG.info(" Client certificate " + (c + 1) + ":"); + LOG.info(" Subject DN: " + cert.getSubjectDN()); + LOG.info(" Signature Algorithm: " + cert.getSigAlgName()); + LOG.info(" Valid from: " + cert.getNotBefore()); + LOG.info(" Valid until: " + cert.getNotAfter()); + LOG.info(" Issuer: " + cert.getIssuerDN()); + } + } + defaultTrustManager.checkClientTrusted(certificates, authType); + } + + /** + * @see javax.net.ssl.X509TrustManager#checkServerTrusted(X509Certificate[],String + * authType) + */ + public void checkServerTrusted(X509Certificate[] certificates, String authType) throws CertificateException { + if (LOG.isInfoEnabled() && certificates != null) { + for (int c = 0; c < certificates.length; c++) { + X509Certificate cert = certificates[c]; + LOG.info(" Server certificate " + (c + 1) + ":"); + LOG.info(" Subject DN: " + cert.getSubjectDN()); + LOG.info(" Signature Algorithm: " + cert.getSigAlgName()); + LOG.info(" Valid from: " + cert.getNotBefore()); + LOG.info(" Valid until: " + cert.getNotAfter()); + LOG.info(" Issuer: " + cert.getIssuerDN()); + } + } + defaultTrustManager.checkServerTrusted(certificates, authType); + } + + /** + * @see javax.net.ssl.X509TrustManager#getAcceptedIssuers() + */ + public X509Certificate[] getAcceptedIssuers() { + return this.defaultTrustManager.getAcceptedIssuers(); + } +} \ No newline at end of file Property changes on: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/AuthSSLX509TrustManager.java ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Name: svn:keywords + Date Revision Author HeadURL Id Name: svn:eol-style + native Added: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/SSLContextInstaller.java =================================================================== --- trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/SSLContextInstaller.java (rev 0) +++ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/SSLContextInstaller.java 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,131 @@ +/** + * Copyright 2008 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * $Id$ + */ +package net.sf.openrdf.core.ssl; + +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.security.KeyManagementException; +import java.security.KeyStore; +import java.security.KeyStoreException; +import java.security.NoSuchAlgorithmException; +import java.security.UnrecoverableKeyException; +import java.security.cert.CertificateException; + +import javax.net.ssl.HttpsURLConnection; +import javax.net.ssl.KeyManagerFactory; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSocketFactory; +import javax.net.ssl.TrustManager; +import javax.net.ssl.TrustManagerFactory; +import javax.net.ssl.X509TrustManager; + +import org.apache.commons.httpclient.protocol.Protocol; + +/** + * Requests to trust all public SSL keys when using https URLConnection, and + * also adds the specified private PKCS12 certificate into the keystore. Also + * work for HttpClient. + */ +public class SSLContextInstaller { + + private static TrustManager[] createTrustManagers(final KeyStore keystore) throws KeyStoreException, + NoSuchAlgorithmException { + if (keystore == null) { + throw new IllegalArgumentException("Keystore may not be null"); + } + // LOG.debug("Initializing trust manager"); + TrustManagerFactory tmfactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); + tmfactory.init(keystore); + TrustManager[] trustmanagers = tmfactory.getTrustManagers(); + for (int i = 0; i < trustmanagers.length; i++) { + if (trustmanagers[i] instanceof X509TrustManager) { + trustmanagers[i] = new AuthSSLX509TrustManager((X509TrustManager) trustmanagers[i]); + } + } + return trustmanagers; + } + + /** + * Create a SSLContextInstaller given the path and the password of a PKCS12 + * certificate. Trust all servers & certificate (do not do certificate chain + * validation) + * + * @param certPath + * certificate path + * @param certPass + * password + * @throws KeyStoreException + * @throws IOException + * @throws CertificateException + * @throws NoSuchAlgorithmException + * @throws UnrecoverableKeyException + * @throws KeyManagementException + */ + public static void install(String certPath, String certPass, String keystorePath, String keystorePass) + throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException, + UnrecoverableKeyException, KeyManagementException { + TrustManager[] trustManager; + // create a keystore + KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType()); + if (keystorePath != null && keystorePath.length() != 0) { + // get user password and file input stream + char[] password = keystorePass.toCharArray(); + java.io.FileInputStream fis = new FileInputStream(keystorePath); + keystore.load(fis, password); + fis.close(); + // create a TrustManager + trustManager = createTrustManagers(keystore); + } else { + // load a null keystore and a allTrustManager + keystore.load(null, null); + trustManager = new TrustManager[] { new X509TrustManager() { + public java.security.cert.X509Certificate[] getAcceptedIssuers() { + return null; + } + + public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) { + } + + public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) { + } + } }; + } + + // create a TrustManager + + // Install the all-trusting trust manager + SSLContext ctx = SSLContext.getInstance("TLS"); + KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509"); + KeyStore ks = KeyStore.getInstance("PKCS12"); + InputStream input = new FileInputStream(certPath); + ks.load(input, certPass.toCharArray()); + if (input != null) { + input.close(); + } + + kmf.init(ks, certPass.toCharArray()); + ctx.init(kmf.getKeyManagers(), trustManager, null); + SSLSocketFactory factory = ctx.getSocketFactory(); + HttpsURLConnection.setDefaultSSLSocketFactory(factory); + + // Now try to install that into HttpClient. + Protocol authhttps = new Protocol("https", new SSLProtocolSocketFactory(ctx), 443); + Protocol.registerProtocol("https", authhttps); + } +} Property changes on: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/SSLContextInstaller.java ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Name: svn:keywords + Date Revision Author HeadURL Id Name: svn:eol-style + native Added: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/SSLProtocolSocketFactory.java =================================================================== --- trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/SSLProtocolSocketFactory.java (rev 0) +++ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/SSLProtocolSocketFactory.java 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,131 @@ +/* + * ==================================================================== + * + * Copyright 2002-2004 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * <http://www.apache.org/>. + * + * Modified by $Author$ on $Date$. + * + */ + +package net.sf.openrdf.core.ssl; + +import java.io.IOException; +import java.net.InetAddress; +import java.net.InetSocketAddress; +import java.net.Socket; +import java.net.SocketAddress; +import java.net.UnknownHostException; + +import javax.net.SocketFactory; +import javax.net.ssl.SSLContext; + +import org.apache.commons.httpclient.ConnectTimeoutException; +import org.apache.commons.httpclient.params.HttpConnectionParams; +import org.apache.commons.httpclient.protocol.ProtocolSocketFactory; + +/** + * Create SSL Sockets using a SSLContext. + * <p> + * Note : The original file name was AuthSSLProtocolSocketFactory. It has been + * heavly refactored ! (only 20 lines of the original file has been kept) + */ +public class SSLProtocolSocketFactory implements ProtocolSocketFactory { + + private final SSLContext sslcontext; + + public SSLProtocolSocketFactory(final SSLContext ctx) { + super(); + this.sslcontext = ctx; + } + + private SSLContext getSSLContext() { + return this.sslcontext; + } + + /** + * Attempts to get a new socket connection to the given host within the + * given time limit. + * <p> + * To circumvent the limitations of older JREs that do not support connect + * timeout a controller thread is executed. The controller thread attempts + * to create a new socket within the given limit of time. If socket + * constructor does not return until the timeout expires, the controller + * terminates and throws an {@link ConnectTimeoutException} + * </p> + * + * @param host + * the host name/IP + * @param port + * the port on the host + * @param clientHost + * the local host name/IP to bind the socket to + * @param clientPort + * the port on the local machine + * @param params + * {@link HttpConnectionParams Http connection parameters} + * + * @return Socket a new socket + * + * @throws IOException + * if an I/O error occurs while creating the socket + * @throws UnknownHostException + * if the IP address of the host cannot be determined + */ + public Socket createSocket(final String host, final int port, final InetAddress localAddress, final int localPort, + final HttpConnectionParams params) throws IOException, UnknownHostException, ConnectTimeoutException { + if (params == null) { + throw new IllegalArgumentException("Parameters may not be null"); + } + int timeout = params.getConnectionTimeout(); + SocketFactory socketfactory = getSSLContext().getSocketFactory(); + if (timeout == 0) { + return socketfactory.createSocket(host, port, localAddress, localPort); + } else { + Socket socket = socketfactory.createSocket(); + SocketAddress localaddr = new InetSocketAddress(localAddress, localPort); + SocketAddress remoteaddr = new InetSocketAddress(host, port); + socket.bind(localaddr); + socket.connect(remoteaddr, timeout); + return socket; + } + } + + /** + * @see SecureProtocolSocketFactory#createSocket(java.lang.String,int,java.net.InetAddress,int) + */ + public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort) throws IOException, UnknownHostException { + return getSSLContext().getSocketFactory().createSocket(host, port, clientHost, clientPort); + } + + /** + * @see SecureProtocolSocketFactory#createSocket(java.lang.String,int) + */ + public Socket createSocket(String host, int port) throws IOException, UnknownHostException { + return getSSLContext().getSocketFactory().createSocket(host, port); + } + + /** + * @see SecureProtocolSocketFactory#createSocket(java.net.Socket,java.lang.String,int,boolean) + */ + public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException { + return getSSLContext().getSocketFactory().createSocket(socket, host, port, autoClose); + } +} Property changes on: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdf/core/ssl/SSLProtocolSocketFactory.java ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Name: svn:keywords + Date Revision Author HeadURL Id Name: svn:eol-style + native Added: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/Application.java =================================================================== --- trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/Application.java (rev 0) +++ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/Application.java 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,44 @@ +/** + * Copyright 2008 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * $Id$ + */ +package net.sf.openrdfclient.rcp; + +import org.eclipse.core.runtime.IPlatformRunnable; +import org.eclipse.swt.widgets.Display; +import org.eclipse.ui.PlatformUI; + +/** + * This class controls all aspects of the application's execution + */ +public class Application implements IPlatformRunnable { + + /* (non-Javadoc) + * @see org.eclipse.core.runtime.IPlatformRunnable#run(java.lang.Object) + */ + public Object run(Object args) throws Exception { + Display display = PlatformUI.createDisplay(); + try { + int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor()); + if (returnCode == PlatformUI.RETURN_RESTART) { + return IPlatformRunnable.EXIT_RESTART; + } + return IPlatformRunnable.EXIT_OK; + } finally { + display.dispose(); + } + } +} Property changes on: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/Application.java ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Name: svn:keywords + Date Revision Author HeadURL Id Name: svn:eol-style + native Added: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationActionBarAdvisor.java =================================================================== --- trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationActionBarAdvisor.java (rev 0) +++ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationActionBarAdvisor.java 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,37 @@ +/** + * Copyright 2008 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * $Id$ + */ +package net.sf.openrdfclient.rcp; + +import org.eclipse.jface.action.IMenuManager; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.application.ActionBarAdvisor; +import org.eclipse.ui.application.IActionBarConfigurer; + +public class ApplicationActionBarAdvisor extends ActionBarAdvisor { + + public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { + super(configurer); + } + + protected void makeActions(IWorkbenchWindow window) { + } + + protected void fillMenuBar(IMenuManager menuBar) { + } + +} Property changes on: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationActionBarAdvisor.java ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Name: svn:keywords + Date Revision Author HeadURL Id Name: svn:eol-style + native Added: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationWorkbenchAdvisor.java =================================================================== --- trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationWorkbenchAdvisor.java (rev 0) +++ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationWorkbenchAdvisor.java 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,35 @@ +/** + * Copyright 2008 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * $Id$ + */ +package net.sf.openrdfclient.rcp; + +import org.eclipse.ui.application.IWorkbenchWindowConfigurer; +import org.eclipse.ui.application.WorkbenchAdvisor; +import org.eclipse.ui.application.WorkbenchWindowAdvisor; + +public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor { + + private static final String PERSPECTIVE_ID = "net.sf.openrdfclient.rcp.perspective"; + + public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { + return new ApplicationWorkbenchWindowAdvisor(configurer); + } + + public String getInitialWindowPerspectiveId() { + return PERSPECTIVE_ID; + } +} Property changes on: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationWorkbenchAdvisor.java ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Name: svn:keywords + Date Revision Author HeadURL Id Name: svn:eol-style + native Added: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationWorkbenchWindowAdvisor.java =================================================================== --- trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationWorkbenchWindowAdvisor.java (rev 0) +++ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationWorkbenchWindowAdvisor.java 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,43 @@ +/** + * Copyright 2008 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * $Id$ + */ +package net.sf.openrdfclient.rcp; + +import org.eclipse.swt.graphics.Point; +import org.eclipse.ui.application.ActionBarAdvisor; +import org.eclipse.ui.application.IActionBarConfigurer; +import org.eclipse.ui.application.IWorkbenchWindowConfigurer; +import org.eclipse.ui.application.WorkbenchWindowAdvisor; + +public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor { + + public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { + super(configurer); + } + + public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) { + return new ApplicationActionBarAdvisor(configurer); + } + + public void preWindowOpen() { + IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); + configurer.setInitialSize(new Point(400, 300)); + configurer.setShowCoolBar(false); + configurer.setShowStatusLine(false); + configurer.setTitle("OpenRDF Client"); + } +} Property changes on: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/ApplicationWorkbenchWindowAdvisor.java ___________________________________________________________________ Name: svn:executable + * Name: svn:mime-type + text/plain Name: svn:keywords + Date Revision Author HeadURL Id Name: svn:eol-style + native Added: trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/OpenRDFClientPlugin.java =================================================================== --- trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/OpenRDFClientPlugin.java (rev 0) +++ trunk/net.sf.openrdfclient.rcp/src/net/sf/openrdfclient/rcp/OpenRDFClientPlugin.java 2008-01-08 11:44:53 UTC (rev 1) @@ -0,0 +1,157 @@ +/** + * Copyright 2008 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * $Id$ + */ +package net.sf.openrdfclient.rcp; + +import org.eclipse.core.runtime.IStatus; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.resource.ImageDescriptor; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class OpenRDFClientPlugin extends AbstractUIPlugin { + + // The plug-in ID + public static final String PLUGIN_ID = "net.sf.openrdfclient.rcp"; + + // The shared instance + private static OpenRDFClientPlugin plugin; + + /** + * The constructor + */ + public OpenRDFClientPlugin() { + plugin = this; + } + + @Override + public void start(BundleContext conte... [truncated message content] |