Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/javax/security/auth/login/ConfigurationSpi.java
38918 views
/*1* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/242526package javax.security.auth.login;2728/**29* This class defines the <i>Service Provider Interface</i> (<b>SPI</b>)30* for the {@code Configuration} class.31* All the abstract methods in this class must be implemented by each32* service provider who wishes to supply a Configuration implementation.33*34* <p> Subclass implementations of this abstract class must provide35* a public constructor that takes a {@code Configuration.Parameters}36* object as an input parameter. This constructor also must throw37* an IllegalArgumentException if it does not understand the38* {@code Configuration.Parameters} input.39*40*41* @since 1.642*/4344public abstract class ConfigurationSpi {45/**46* Retrieve the AppConfigurationEntries for the specified <i>name</i>.47*48* <p>49*50* @param name the name used to index the Configuration.51*52* @return an array of AppConfigurationEntries for the specified53* <i>name</i>, or null if there are no entries.54*/55protected abstract AppConfigurationEntry[] engineGetAppConfigurationEntry56(String name);5758/**59* Refresh and reload the Configuration.60*61* <p> This method causes this Configuration object to refresh/reload its62* contents in an implementation-dependent manner.63* For example, if this Configuration object stores its entries in a file,64* calling {@code refresh} may cause the file to be re-read.65*66* <p> The default implementation of this method does nothing.67* This method should be overridden if a refresh operation is supported68* by the implementation.69*70* @exception SecurityException if the caller does not have permission71* to refresh its Configuration.72*/73protected void engineRefresh() { }74}757677