blob: 64079939a8bcd5b2dd9466646452d15ab7938018 [file] [log] [blame]
Jian Lic704b672018-09-04 18:52:53 +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 */
16
17package org.onosproject.openstacknode.api;
18
19/**
20 * Representation of openstack keystone config information.
21 */
22public interface KeystoneConfig {
23
24 /**
25 * Returns the endpoint URL info.
26 *
27 * @return keystone authentication info
28 */
29 String endpoint();
30
31 /**
32 * Returns the keystone authentication info.
33 *
34 * @return keystone authentication info
35 */
36 OpenstackAuth authentication();
37
38 /**
39 * Builder of new keystone config entity.
40 */
41 interface Builder {
42
43 /**
44 * Builds an immutable keystone config instance.
45 *
46 * @return keystone config instance
47 */
48 KeystoneConfig build();
49
50 /**
51 * Returns keystone config builder with supplied endpoint.
52 *
53 * @param endpoint endpoint of keystone
54 * @return keystone config builder
55 */
56 Builder endpoint(String endpoint);
57
58 /**
59 * Returns keystone config builder with supplied authentication info.
60 *
61 * @param auth authentication info
62 * @return keystone config builder
63 */
64 Builder authentication(OpenstackAuth auth);
65 }
66}