blob: 8ca1e93061ff492ae1762ff2b2fbfa766ed9187c [file] [log] [blame]
Sean Condon54d82432017-07-26 22:27:25 +01001/*
2 * Copyright 2015-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.netconf.config;
17
18/**
19 * Enumerated list of SSH client library types.
20 */
21public enum NetconfSshClientLib {
22 APACHE_MINA("apache-mina"),
23 ETHZ_SSH2("ethz-ssh2");
24
25 private String impl;
26
27 private NetconfSshClientLib(String impl) {
28 this.impl = impl;
29 }
30
31 @Override
32 public String toString() {
33 return impl;
34 }
35
36 public static NetconfSshClientLib getEnum(String valueOf) {
37 return valueOf(valueOf.toUpperCase().replace('-', '_'));
38 }
39}