本文整理了Java中javax.security.auth.message.config.AuthConfigFactory.getRegistrationContext()
方法的一些代码示例,展示了AuthConfigFactory.getRegistrationContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthConfigFactory.getRegistrationContext()
方法的具体详情如下:
包路径:javax.security.auth.message.config.AuthConfigFactory
类名称:AuthConfigFactory
方法名:getRegistrationContext
[英]Get the the registration context for the identified registration.
[中]获取已标识注册的注册上下文。
代码示例来源:origin: wildfly/wildfly
@Override
public RegistrationContext getRegistrationContext(String registrationID) {
RegistrationContext registrationContext = elytronAuthConfigFactory.getRegistrationContext(registrationID);
if (registrationContext == null) {
registrationContext = backupAuthConfigFactory.getRegistrationContext(registrationID);
}
return registrationContext;
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
@Override
public RegistrationContext getRegistrationContext(String registrationID) {
RegistrationContext registrationContext = elytronAuthConfigFactory.getRegistrationContext(registrationID);
if (registrationContext == null) {
registrationContext = backupAuthConfigFactory.getRegistrationContext(registrationID);
}
return registrationContext;
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron-jaspi
@Override
public RegistrationContext getRegistrationContext(String registrationID) {
RegistrationContext registrationContext = elytronAuthConfigFactory.getRegistrationContext(registrationID);
if (registrationContext == null) {
registrationContext = backupAuthConfigFactory.getRegistrationContext(registrationID);
}
return registrationContext;
}
代码示例来源: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: org.glassfish.main.security/jaspic.provider.framework
for (String i : regID) {
if (selfRegistered.contains(i)) {
RegistrationContext c = getFactory().getRegistrationContext(i);
if (c != null && !c.isPersistent()) {
toBeUnregistered.add(i);
RegistrationContext r = getFactory().getRegistrationContext(i);
for (int j = 0; j < contexts.length; j++) {
if (contextsAreEqual(contexts[j], r)) {
代码示例来源:origin: eclipse-ee4j/glassfish
for (String i : regID) {
if (selfRegistered.contains(i)) {
RegistrationContext c = getFactory().getRegistrationContext(i);
if (c != null && !c.isPersistent()) {
toBeUnregistered.add(i);
RegistrationContext r = getFactory().getRegistrationContext(i);
for (int j = 0; j < contexts.length; j++) {
if (contextsAreEqual(contexts[j], r)) {
代码示例来源: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();
}
代码示例来源: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();
}
内容来源于网络,如有侵权,请联系作者删除!