01: /**
02: * @copyright
03: * ====================================================================
04: * Copyright (c) 2003-2005 CollabNet. All rights reserved.
05: *
06: * This software is licensed as described in the file COPYING, which
07: * you should have received as part of this distribution. The terms
08: * are also available at http://subversion.tigris.org/license-1.html.
09: * If newer versions of this license are posted there, you may use a
10: * newer version instead, at your option.
11: *
12: * This software consists of voluntary contributions made by many
13: * individuals. For exact contribution history, see the revision
14: * history and logs, available at http://subversion.tigris.org/.
15: * ====================================================================
16: * @endcopyright
17: */package org.tigris.subversion.javahl;
18:
19: /**
20: * Partial interface for receiving callbacks for authentication. New
21: * applications should use PromptUserPassword3 instead.
22: */
23: public interface PromptUserPassword2 extends PromptUserPassword {
24: /**
25: * Reject the connection to the server.
26: */
27: public static final int Reject = 0;
28:
29: /**
30: * Accept the connection to the server <i>once</i>.
31: */
32: public static final int AcceptTemporary = 1;
33:
34: /**
35: * @deprecated Use the correctly spelled "AcceptTemporary"
36: * constant instead.
37: */
38: public static final int AccecptTemporary = AcceptTemporary;
39:
40: /**
41: * Accept the connection to the server <i>forever</i>.
42: */
43: public static final int AcceptPermanently = 2;
44:
45: /**
46: * If there are problems with the certifcate of the SSL-server, this
47: * callback will be used to deside if the connection will be used.
48: * @param info the probblems with the certificate.
49: * @param allowPermanently if AcceptPermantly is a legal answer
50: * @return one of Reject/AcceptTemporary/AcceptPermanently
51: */
52: public int askTrustSSLServer(String info, boolean allowPermanently);
53: }
|