本文整理了Java中javax.security.auth.login.Configuration.refresh()
方法的一些代码示例,展示了Configuration.refresh()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.refresh()
方法的具体详情如下:
包路径:javax.security.auth.login.Configuration
类名称:Configuration
方法名:refresh
暂无
代码示例来源:origin: spring-projects/spring-security
/**
* Hook method for configuring Jaas.
*
* @param loginConfig URL to Jaas login configuration
*
* @throws IOException if there is a problem reading the config resource.
*/
protected void configureJaas(Resource loginConfig) throws IOException {
configureJaasUsingLoop();
if (this.refreshConfigurationOnStartup) {
// Overcome issue in SEC-760
Configuration.getConfiguration().refresh();
}
}
代码示例来源:origin: org.springframework.security/spring-security-core
/**
* Hook method for configuring Jaas.
*
* @param loginConfig URL to Jaas login configuration
*
* @throws IOException if there is a problem reading the config resource.
*/
protected void configureJaas(Resource loginConfig) throws IOException {
configureJaasUsingLoop();
if (this.refreshConfigurationOnStartup) {
// Overcome issue in SEC-760
Configuration.getConfiguration().refresh();
}
}
代码示例来源:origin: com.alibaba.blink/flink-runtime
@Override
public void refresh() {
if (delegate != null) {
delegate.refresh();
}
}
}
代码示例来源:origin: org.apache.flink/flink-runtime
@Override
public void refresh() {
if (delegate != null) {
delegate.refresh();
}
}
}
代码示例来源:origin: apache/karaf
public void refresh() {
if (defaultConfiguration != null) {
defaultConfiguration.refresh();
}
}
}
代码示例来源:origin: org.apache.karaf.jaas/org.apache.karaf.jaas.config
public void refresh() {
if (defaultConfiguration != null) {
defaultConfiguration.refresh();
}
}
}
代码示例来源:origin: org.apache.flink/flink-runtime_2.10
@Override
public void refresh() {
if(delegate != null) {
delegate.refresh();
}
}
}
代码示例来源:origin: org.apache.flink/flink-runtime_2.11
@Override
public void refresh() {
if (delegate != null) {
delegate.refresh();
}
}
}
代码示例来源:origin: net.sf.wsag4j/wsag4j-api
@Override
public void refresh()
{
configuration.refresh();
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.security
@Override
public synchronized void refresh() {
for (int i = 0; i < federatedConfigs.length; i++)
federatedConfigs[i].refresh();
if (defaultConfiguration != null)
defaultConfiguration.refresh();
configCache.clear();
configToProviderMap.clear();
}
代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.security
public synchronized void refresh() {
for (int i = 0; i < federatedConfigs.length; i++)
federatedConfigs[i].refresh();
if (defaultConfiguration != null)
defaultConfiguration.refresh();
configCache.clear();
configToProviderMap.clear();
}
代码示例来源:origin: org.springframework.security/org.springframework.security.core
/**
* Hook method for configuring Jaas.
*
* @param loginConfig URL to Jaas login configuration
*
* @throws IOException if there is a problem reading the config resource.
*/
protected void configureJaas(Resource loginConfig) throws IOException {
configureJaasUsingLoop();
if (refreshConfigurationOnStartup) {
// Overcome issue in SEC-760
Configuration.getConfiguration().refresh();
}
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Hook method for configuring Jaas.
*
* @param loginConfig URL to Jaas login configuration
*
* @throws IOException if there is a problem reading the config resource.
*/
protected void configureJaas(Resource loginConfig) throws IOException {
configureJaasUsingLoop();
if (this.refreshConfigurationOnStartup) {
// Overcome issue in SEC-760
Configuration.getConfiguration().refresh();
}
}
代码示例来源:origin: org.glassfish.security/security
/**
* This method will create or replace existing realm with a new one
* in cache.
* @param event
* @exception for instance, BadRealmException, ConfigException,
* SynchronizationException
*/
private static void createRealm(AuthRealm authRealm) throws Exception {
//authRealm cannot be null here
String className = authRealm.getClassname();
List<Property> elementProps = authRealm.getProperty();
Properties props = new Properties();
if (elementProps != null) {
for (Property p : elementProps) {
props.setProperty(p.getName(), p.getValue());
}
}
Realm.instantiate(authRealm.getName(), className, props);
Configuration.getConfiguration().refresh();
}
代码示例来源:origin: org.glassfish.main.security/security
/**
* This method will create or replace existing realm with a new one
* in cache.
* @param event
* @exception for instance, BadRealmException, ConfigException,
* SynchronizationException
*/
private static void createRealm(AuthRealm authRealm) throws Exception {
//authRealm cannot be null here
String className = authRealm.getClassname();
List<Property> elementProps = authRealm.getProperty();
Properties props = new Properties();
if (elementProps != null) {
for (Property p : elementProps) {
props.setProperty(p.getName(), p.getValue());
}
}
Realm.instantiate(authRealm.getName(), className, props);
Configuration.getConfiguration().refresh();
}
代码示例来源:origin: org.glassfish.security/security
/**
* This method will create or replace existing realm with a new one
* in cache.
* @param event
* @exception for instance, BadRealmException, ConfigException,
* SynchronizationException
*/
private static void createRealm(Config config, AuthRealm authRealm) throws Exception {
//authRealm cannot be null here
String className = authRealm.getClassname();
List<Property> elementProps = authRealm.getProperty();
Properties props = new Properties();
if (elementProps != null) {
for (Property p : elementProps) {
props.setProperty(p.getName(), p.getValue());
}
}
Realm.instantiate(authRealm.getName(), className, props, config.getName());
Configuration.getConfiguration().refresh();
}
代码示例来源:origin: org.glassfish.main.security/security
/**
* This method will create or replace existing realm with a new one
* in cache.
* @param event
* @exception for instance, BadRealmException, ConfigException,
* SynchronizationException
*/
private static void createRealm(Config config, AuthRealm authRealm) throws Exception {
//authRealm cannot be null here
String className = authRealm.getClassname();
List<Property> elementProps = authRealm.getProperty();
Properties props = new Properties();
if (elementProps != null) {
for (Property p : elementProps) {
props.setProperty(p.getName(), p.getValue());
}
}
Realm.instantiate(authRealm.getName(), className, props, config.getName());
Configuration.getConfiguration().refresh();
}
内容来源于网络,如有侵权,请联系作者删除!