blob: 46e9f77ad54010842389abd6c4004d5449380f0e [file] [log] [blame]
Daniel Parkdeefa702018-07-17 17:55:51 +09001/*
2 * Copyright 2018-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.openstacknode.api;
17
18/**
19 * Representation of ssh authentication information for node.
20 */
21public interface OpenstackSshAuth {
22 /**
23 * Returns the ID for ssh authentication.
24 *
25 * @return id
26 */
27 String id();
28
29 /**
30 * Returns the password for ssh authentication.
31 *
32 * @return password
33 */
34 String password();
35
36 /**
37 * Builder of OpenstackSshAuth instance.
38 */
39 interface Builder {
40 /**
41 * Builds an immutable OpenstackSshAuth instance.
42 *
43 * @return OpenstackSsshAuth instance
44 */
45 OpenstackSshAuth build();
46
47 /**
48 * Returns OpenstackSshAuth builder with supplied ID.
49 *
50 * @param id id
51 * @return OpenstackSsshAuth builder
52 */
53 Builder id(String id);
54
55 /**
56 * Returns OpenstackSshAuth builder with supplied password.
57 *
58 * @param password password
59 * @return OpenstackSsshAuth builder
60 */
61 Builder password(String password);
62 }
63}