1adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project/* 2adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * Licensed to the Apache Software Foundation (ASF) under one or more 3adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * contributor license agreements. See the NOTICE file distributed with 4adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * this work for additional information regarding copyright ownership. 5adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * The ASF licenses this file to You under the Apache License, Version 2.0 6adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * (the "License"); you may not use this file except in compliance with 7adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * the License. You may obtain a copy of the License at 8adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * 9adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * http://www.apache.org/licenses/LICENSE-2.0 10adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * 11adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * Unless required by applicable law or agreed to in writing, software 12adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * distributed under the License is distributed on an "AS IS" BASIS, 13adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * See the License for the specific language governing permissions and 15adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * limitations under the License. 16adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project */ 17adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 18adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Projectpackage java.security; 19adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 20adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project/** 21e26b27faf689c17b7894c78caee32432176349ecElliott Hughes * Legacy security code; do not use. 22adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project */ 23adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Projectpublic class ProtectionDomain { 24e26b27faf689c17b7894c78caee32432176349ecElliott Hughes public ProtectionDomain(CodeSource cs, PermissionCollection permissions) { } 25adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 26e26b27faf689c17b7894c78caee32432176349ecElliott Hughes public ProtectionDomain(CodeSource cs, PermissionCollection permissions, ClassLoader cl, Principal[] principals) { } 27adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 28e26b27faf689c17b7894c78caee32432176349ecElliott Hughes public final ClassLoader getClassLoader() { return null; } 29adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 30e26b27faf689c17b7894c78caee32432176349ecElliott Hughes public final CodeSource getCodeSource() { return null; } 31adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 32e26b27faf689c17b7894c78caee32432176349ecElliott Hughes public final PermissionCollection getPermissions() { return null; } 33adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 34e26b27faf689c17b7894c78caee32432176349ecElliott Hughes public final Principal[] getPrincipals() { return null; } 35adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 36e26b27faf689c17b7894c78caee32432176349ecElliott Hughes public boolean implies(Permission permission) { return true; } 37adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project} 38