blob: 5951a6348171a750a0b9c536d902b2969f4c92ec [file] [log] [blame]
Brian O'Connor91d07982015-09-10 16:37:29 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Brian O'Connor91d07982015-09-10 16:37:29 -07003 *
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 */
Changhoon Yoonb856b812015-08-10 03:47:19 +090016package org.onosproject.security.impl;
17
Changhoon Yoonb856b812015-08-10 03:47:19 +090018import org.onosproject.core.ApplicationId;
Changhoon Yoonb856b812015-08-10 03:47:19 +090019import org.onosproject.security.SecurityAdminService;
Ray Milkeyd84f89b2018-08-17 14:54:17 -070020import org.osgi.service.component.annotations.Component;
Changhoon Yoonb856b812015-08-10 03:47:19 +090021
Changhoon Yoonb856b812015-08-10 03:47:19 +090022import java.security.Permission;
Changhoon Yoonb856b812015-08-10 03:47:19 +090023import java.util.List;
24import java.util.Map;
Changhoon Yoonb856b812015-08-10 03:47:19 +090025
Changhoon Yoonb856b812015-08-10 03:47:19 +090026/**
27 * Security-Mode ONOS management implementation.
Brian O'Connor91d07982015-09-10 16:37:29 -070028 *
29 * Note: Activating Security-Mode ONOS has significant performance implications in Drake.
30 * See the wiki for instructions on how to activate it.
Changhoon Yoonb856b812015-08-10 03:47:19 +090031 */
32
Ray Milkeyd84f89b2018-08-17 14:54:17 -070033@Component(immediate = true, service = SecurityAdminService.class)
Changhoon Yoonb856b812015-08-10 03:47:19 +090034public class SecurityModeManager implements SecurityAdminService {
35
Changhoon Yoonb856b812015-08-10 03:47:19 +090036 @Override
37 public boolean isSecured(ApplicationId appId) {
Ray Milkeyd84f89b2018-08-17 14:54:17 -070038 return false;
Changhoon Yoonb856b812015-08-10 03:47:19 +090039 }
40
Changhoon Yoonb856b812015-08-10 03:47:19 +090041 @Override
42 public void review(ApplicationId appId) {
Ray Milkeyd84f89b2018-08-17 14:54:17 -070043
Changhoon Yoonb856b812015-08-10 03:47:19 +090044 }
45
46 @Override
47 public void acceptPolicy(ApplicationId appId) {
Ray Milkeyd84f89b2018-08-17 14:54:17 -070048
Changhoon Yoonb856b812015-08-10 03:47:19 +090049 }
50
51 @Override
52 public void register(ApplicationId appId) {
Ray Milkeyd84f89b2018-08-17 14:54:17 -070053
Changhoon Yoonb856b812015-08-10 03:47:19 +090054 }
55
56 @Override
57 public Map<Integer, List<Permission>> getPrintableSpecifiedPermissions(ApplicationId appId) {
Ray Milkeyd84f89b2018-08-17 14:54:17 -070058 return null;
Changhoon Yoonb856b812015-08-10 03:47:19 +090059 }
60
61 @Override
62 public Map<Integer, List<Permission>> getPrintableGrantedPermissions(ApplicationId appId) {
Ray Milkeyd84f89b2018-08-17 14:54:17 -070063 return null;
Changhoon Yoonb856b812015-08-10 03:47:19 +090064 }
65
66 @Override
67 public Map<Integer, List<Permission>> getPrintableRequestedPermissions(ApplicationId appId) {
Ray Milkeyd84f89b2018-08-17 14:54:17 -070068 return null;
Changhoon Yoonb856b812015-08-10 03:47:19 +090069 }
Changhoon Yoonb856b812015-08-10 03:47:19 +090070}