javax.security.auth.message.config.AuthConfigFactory.getRegistrationIDs()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(74)

本文整理了Java中javax.security.auth.message.config.AuthConfigFactory.getRegistrationIDs()方法的一些代码示例,展示了AuthConfigFactory.getRegistrationIDs()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthConfigFactory.getRegistrationIDs()方法的具体详情如下:
包路径:javax.security.auth.message.config.AuthConfigFactory
类名称:AuthConfigFactory
方法名:getRegistrationIDs

AuthConfigFactory.getRegistrationIDs介绍

[英]Get the registration identifiers for all registrations of the provider instance at the factory.
[中]获取工厂中提供程序实例的所有注册的注册标识符。

代码示例

代码示例来源:origin: wildfly/wildfly

@Override
public String[] getRegistrationIDs(AuthConfigProvider provider) {
  String[] elytronRegistrationIds = elytronAuthConfigFactory.getRegistrationIDs(provider);
  String[] backupRegistrationIds = backupAuthConfigFactory.getRegistrationIDs(provider);
  return combine(elytronRegistrationIds, backupRegistrationIds);
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

@Override
public String[] getRegistrationIDs(AuthConfigProvider provider) {
  String[] elytronRegistrationIds = elytronAuthConfigFactory.getRegistrationIDs(provider);
  String[] backupRegistrationIds = backupAuthConfigFactory.getRegistrationIDs(provider);
  return combine(elytronRegistrationIds, backupRegistrationIds);
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-jaspi

@Override
public String[] getRegistrationIDs(AuthConfigProvider provider) {
  String[] elytronRegistrationIds = elytronAuthConfigFactory.getRegistrationIDs(provider);
  String[] backupRegistrationIds = backupAuthConfigFactory.getRegistrationIDs(provider);
  return combine(elytronRegistrationIds, backupRegistrationIds);
}

代码示例来源:origin: org.glassfish.security/security

/**
 * Check if there is a provider register for a given layer and appCtxt.
 */
protected boolean hasExactMatchAuthProvider() {
  boolean exactMatch = false;
  // XXX this may need to be optimized
  AuthConfigProvider p = 
      factory.getConfigProvider(layer, appCtxt, null);
  if (p != null) {
    String[] IDs = factory.getRegistrationIDs(p);
    for (String i : IDs) {
      RegistrationContext c = factory.getRegistrationContext(i);
      if (layer.equals(c.getMessageLayer()) && 
          appCtxt.equals(c.getAppContext())) {
        exactMatch = true;
        break;
      }
    }
  }
  return exactMatch;
}

代码示例来源:origin: org.glassfish.main.security/security-ee

/**
 * Check if there is a provider register for a given layer and appCtxt.
 */
protected boolean hasExactMatchAuthProvider() {
  boolean exactMatch = false;
  // XXX this may need to be optimized
  AuthConfigProvider p = 
      factory.getConfigProvider(layer, appCtxt, null);
  if (p != null) {
    String[] IDs = factory.getRegistrationIDs(p);
    for (String i : IDs) {
      RegistrationContext c = factory.getRegistrationContext(i);
      if (layer.equals(c.getMessageLayer()) && 
          appCtxt.equals(c.getAppContext())) {
        exactMatch = true;
        break;
      }
    }
  }
  return exactMatch;
}

代码示例来源:origin: eclipse-ee4j/glassfish

HashSet<String> toBeUnregistered = new HashSet<String>();
String[] regID = getFactory().getRegistrationIDs(this);
for (String i : regID) {
  if (selfRegistered.contains(i)) {

代码示例来源:origin: org.glassfish.main.security/jaspic.provider.framework

HashSet<String> toBeUnregistered = new HashSet<String>();
String[] regID = getFactory().getRegistrationIDs(this);
for (String i : regID) {
  if (selfRegistered.contains(i)) {

代码示例来源:origin: org.glassfish.main.security/jaspic.provider.framework

/**
 * to be called by refresh on provider subclass, and after subclass impl.
 * has reloaded its underlying configuration system.
 * Note: Spec is silent as to whether self-registrations should be reprocessed.
 */
public void oldRefresh() {
  if (getFactory() != null) {
    String[] regID = getFactory().getRegistrationIDs(this);
    for (String i : regID) {
      if (selfRegistered.contains(i)) {
        RegistrationContext c = getFactory().getRegistrationContext(i);
        if (c != null && !c.isPersistent()) {
          getFactory().removeRegistration(i);
        }
      }
    }
  }
  epochCarrier.increment();
  selfRegister();
}

代码示例来源:origin: eclipse-ee4j/glassfish

/**
 * to be called by refresh on provider subclass, and after subclass impl.
 * has reloaded its underlying configuration system.
 * Note: Spec is silent as to whether self-registrations should be reprocessed.
 */
public void oldRefresh() {
  if (getFactory() != null) {
    String[] regID = getFactory().getRegistrationIDs(this);
    for (String i : regID) {
      if (selfRegistered.contains(i)) {
        RegistrationContext c = getFactory().getRegistrationContext(i);
        if (c != null && !c.isPersistent()) {
          getFactory().removeRegistration(i);
        }
      }
    }
  }
  epochCarrier.increment();
  selfRegister();
}

相关文章