Revision 065ce8c1 src/gr/ebs/gss/server/webdav/milton/GssMiltonServlet.java
b/src/gr/ebs/gss/server/webdav/milton/GssMiltonServlet.java | ||
---|---|---|
31 | 31 |
import com.bradmcevoy.http.MiltonServlet; |
32 | 32 |
import com.bradmcevoy.http.ServletHttpManager; |
33 | 33 |
import com.bradmcevoy.http.http11.auth.PreAuthenticationFilter; |
34 |
import com.bradmcevoy.http.http11.auth.SimpleMemoryNonceProvider; |
|
35 | 34 |
import com.bradmcevoy.http.webdav.DefaultWebDavResponseHandler; |
36 | 35 |
import com.ettrema.console.ConsoleResourceFactory; |
37 | 36 |
|
... | ... | |
48 | 47 |
try { |
49 | 48 |
this.config = config; |
50 | 49 |
GssLockManager lockManager = new GssLockManager(); |
51 |
SimpleMemoryNonceProvider nonce = new SimpleMemoryNonceProvider( 60*60*24 ); |
|
50 |
//SimpleMemoryNonceProvider nonce = new SimpleMemoryNonceProvider( 60*60*24 ); |
|
51 |
GssNonceProvider nonce = new GssNonceProvider( 60*60*24 ); |
|
52 | 52 |
GssSecurityManager securityManager = new GssSecurityManager("Pithos WebDAV"); |
53 | 53 |
AuthenticationService authService = new AuthenticationService(nonce); |
54 | 54 |
authService.setDisableBasic(true); |
... | ... | |
60 | 60 |
resourceFactory.setLockManager(lockManager); |
61 | 61 |
resourceFactory.setMaxAgeSeconds(3600l); |
62 | 62 |
resourceFactory.setContextPath("webdav"); |
63 |
PreAuthenticationFilter filter = new PreAuthenticationFilter(compressHandler, securityManager,nonce); |
|
63 |
//PreAuthenticationFilter filter = new PreAuthenticationFilter(compressHandler, securityManager,nonce);
|
|
64 | 64 |
ConsoleResourceFactory consoleResourceFactory = new ConsoleResourceFactory(resourceFactory, "/console", "/webdav", Arrays.asList(new com.ettrema.console.LsFactory(), |
65 | 65 |
new com.ettrema.console.CdFactory(), |
66 | 66 |
new com.ettrema.console.RmFactory(), |
Also available in: Unified diff