@Override public RegistrationContext getRegistrationContext(String registrationID) { RegistrationContext registrationContext = elytronAuthConfigFactory.getRegistrationContext(registrationID); if (registrationContext == null) { registrationContext = backupAuthConfigFactory.getRegistrationContext(registrationID); } return registrationContext; }
@Override public RegistrationContext getRegistrationContext(String registrationID) { RegistrationContext registrationContext = elytronAuthConfigFactory.getRegistrationContext(registrationID); if (registrationContext == null) { registrationContext = backupAuthConfigFactory.getRegistrationContext(registrationID); } return registrationContext; }
@Override public RegistrationContext getRegistrationContext(String registrationID) { RegistrationContext registrationContext = elytronAuthConfigFactory.getRegistrationContext(registrationID); if (registrationContext == null) { registrationContext = backupAuthConfigFactory.getRegistrationContext(registrationID); } return registrationContext; }
/** * 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; }
/** * 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; }
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)) {
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)) {
/** * 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(); }
/** * 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(); }