blob: 569a5ac8baab70ffa56f379e1da27a9bcaf7db68 [file] [log] [blame]
Chanhee Lee94010482017-01-23 23:06:18 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Chanhee Lee94010482017-01-23 23:06:18 -08003 *
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.security;
18
19import java.security.Permission;
20import java.util.List;
21import java.util.Map;
22
23import org.onosproject.core.ApplicationId;
24
25/**
26 * Test adapter for SecurityAdminService.
27 */
28public class SecurityAdminServiceAdapter implements SecurityAdminService {
29
30 @Override
31 public boolean isSecured(ApplicationId appId) {
32 return false;
33 }
34
35 @Override
36 public void review(ApplicationId appId) {
37 }
38
39 @Override
40 public void acceptPolicy(ApplicationId appId) {
41 }
42
43 @Override
44 public void register(ApplicationId appId) {
45 }
46
47 @Override
48 public Map<Integer, List<Permission>> getPrintableSpecifiedPermissions(ApplicationId appId) {
49 return null;
50 }
51
52 @Override
53 public Map<Integer, List<Permission>> getPrintableGrantedPermissions(ApplicationId appId) {
54 return null;
55 }
56
57 @Override
58 public Map<Integer, List<Permission>> getPrintableRequestedPermissions(ApplicationId appId) {
59 return null;
60 }
61
62}