Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
AbstractKnownHostsProvider |
|
| 1.0;1 |
1 | package org.apache.maven.wagon.providers.ssh.knownhost; |
|
2 | ||
3 | /* |
|
4 | * Copyright 2001-2005 The Apache Software Foundation. |
|
5 | * |
|
6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
7 | * you may not use this file except in compliance with the License. |
|
8 | * You may obtain a copy of the License at |
|
9 | * |
|
10 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
11 | * |
|
12 | * Unless required by applicable law or agreed to in writing, software |
|
13 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
15 | * See the License for the specific language governing permissions and |
|
16 | * limitations under the License. |
|
17 | */ |
|
18 | ||
19 | import com.jcraft.jsch.JSch; |
|
20 | ||
21 | import java.util.Properties; |
|
22 | import java.io.IOException; |
|
23 | ||
24 | /** |
|
25 | * Common base for known hosts providers. |
|
26 | * |
|
27 | * @author <a href="mailto:brett@apache.org">Brett Porter</a> |
|
28 | * @version $Id: AbstractKnownHostsProvider.java 312817 2005-10-11 06:32:11Z brett $ |
|
29 | */ |
|
30 | 0 | public abstract class AbstractKnownHostsProvider |
31 | implements KnownHostsProvider |
|
32 | { |
|
33 | private String hostKeyChecking; |
|
34 | ||
35 | public void addConfiguration( Properties config ) |
|
36 | { |
|
37 | 0 | config.setProperty( HOST_KEY_CHECKING, hostKeyChecking ); |
38 | 0 | } |
39 | ||
40 | public void setHostKeyChecking( String hostKeyChecking ) |
|
41 | { |
|
42 | 0 | this.hostKeyChecking = hostKeyChecking; |
43 | 0 | } |
44 | ||
45 | public String getHostKeyChecking() |
|
46 | { |
|
47 | 0 | return hostKeyChecking; |
48 | } |
|
49 | ||
50 | public void storeKnownHosts( JSch sch ) |
|
51 | { |
|
52 | 0 | } |
53 | } |