Tabnine Logo
AuthConfigFactory$RegistrationContext.isPersistent
Code IndexAdd Tabnine to your IDE (free)

How to use
isPersistent
method
in
javax.security.auth.message.config.AuthConfigFactory$RegistrationContext

Best Java code snippets using javax.security.auth.message.config.AuthConfigFactory$RegistrationContext.isPersistent (Showing top 20 results out of 315)

origin: org.glassfish.main.security/jaspic.provider.framework

private boolean _unRegister(String regisID) {
  boolean rvalue = false;
  RegistrationContext rc = null;
  Map<String, List<RegistrationListener>> listenerMap;
  wLock.lock();
  try {
    rc = id2RegisContextMap.remove(regisID);
    rvalue = id2ProviderMap.containsKey(regisID);
    AuthConfigProvider provider = id2ProviderMap.remove(regisID);
    List<String> regisIDs = provider2IdsMap.get(provider);
    if (regisIDs != null) {
      regisIDs.remove(regisID);
    }
    if (regisIDs == null || regisIDs.isEmpty()) {
      provider2IdsMap.remove(provider);
    }            
    if (!rvalue) {
      return false;
    }
    listenerMap = getEffectedListeners(regisID);
    if (rc != null && rc.isPersistent()) {
        _deleteStoredRegistration(regisID, rc);
    }
  } finally {
    wLock.unlock();
  }
  // outside wLock to prevent dead lock
  notifyListeners(listenerMap);
  return rvalue;
}
origin: eclipse-ee4j/glassfish

private boolean _unRegister(String regisID) {
  boolean rvalue = false;
  RegistrationContext rc = null;
  Map<String, List<RegistrationListener>> listenerMap;
  wLock.lock();
  try {
    rc = id2RegisContextMap.remove(regisID);
    rvalue = id2ProviderMap.containsKey(regisID);
    AuthConfigProvider provider = id2ProviderMap.remove(regisID);
    List<String> regisIDs = provider2IdsMap.get(provider);
    if (regisIDs != null) {
      regisIDs.remove(regisID);
    }
    if (regisIDs == null || regisIDs.isEmpty()) {
      provider2IdsMap.remove(provider);
    }            
    if (!rvalue) {
      return false;
    }
    listenerMap = getEffectedListeners(regisID);
    if (rc != null && rc.isPersistent()) {
        _deleteStoredRegistration(regisID, rc);
    }
  } finally {
    wLock.unlock();
  }
  // outside wLock to prevent dead lock
  notifyListeners(listenerMap);
  return rvalue;
}
origin: eclipse-ee4j/glassfish

private void _storeRegistration(String regId,
    RegistrationContext ctx, AuthConfigProvider p, Map properties) {
  String className = null;
  if (p != null) {
    className = p.getClass().getName();
  }
  if (propertiesContainAnyNonStringValues(properties)) {
    throw new IllegalArgumentException("AuthConfigProvider cannot be registered - properties must all be of type String.");
  }
  if (ctx.isPersistent()) {
    getRegStore().store(className, ctx, properties);
  }
}
origin: org.glassfish.main.security/jaspic.provider.framework

if (selfRegistered.contains(i)) {
  RegistrationContext c = getFactory().getRegistrationContext(i);
  if (c != null && !c.isPersistent()) {
    toBeUnregistered.add(i);
origin: eclipse-ee4j/glassfish

} else if (prevRegisContext != null && prevRegisContext.isPersistent()) {
  _deleteStoredRegistration(regisID, prevRegisContext);
origin: org.glassfish.main.security/jaspic.provider.framework

} else if (prevRegisContext != null && prevRegisContext.isPersistent()) {
  _deleteStoredRegistration(regisID, prevRegisContext);
origin: eclipse-ee4j/glassfish

if (selfRegistered.contains(i)) {
  RegistrationContext c = getFactory().getRegistrationContext(i);
  if (c != null && !c.isPersistent()) {
    toBeUnregistered.add(i);
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();
}
origin: eclipse-ee4j/glassfish

public boolean contextsAreEqual(RegistrationContext a, RegistrationContext b) {
  if (a == null || b == null) {
    return false;
  } else if (a.isPersistent() != b.isPersistent()) {
    return false;
  } else if (!a.getAppContext().equals(b.getAppContext())) {
    return false;
  } else if (!a.getMessageLayer().equals(b.getMessageLayer())) {
    return false;
  } else if (!a.getDescription().equals(b.getDescription())) {
    return false;
  }
  return true;
}
origin: eclipse-ee4j/glassfish

EntryInfo(String className, Map<String, String> properties,
  RegistrationContext ctx) {
  this.className = className;
  this.properties = properties;
  if (ctx != null) {
    RegistrationContext ctxImpl =
      new RegistrationContextImpl(ctx.getMessageLayer(),
      ctx.getAppContext(), ctx.getDescription(), ctx.isPersistent());
    List<RegistrationContext> newList =
      new ArrayList<RegistrationContext>(1);
    newList.add(ctxImpl);
    this.regContexts = newList;
  }
}
origin: org.glassfish.main.security/jaspic.provider.framework

EntryInfo(String className, Map<String, String> properties,
  RegistrationContext ctx) {
  this.className = className;
  this.properties = properties;
  if (ctx != null) {
    RegistrationContext ctxImpl =
      new RegistrationContextImpl(ctx.getMessageLayer(),
      ctx.getAppContext(), ctx.getDescription(), ctx.isPersistent());
    List<RegistrationContext> newList =
      new ArrayList<RegistrationContext>(1);
    newList.add(ctxImpl);
    this.regContexts = newList;
  }
}
origin: org.glassfish.main.security/jaspic.provider.framework

public boolean contextsAreEqual(RegistrationContext a, RegistrationContext b) {
  if (a == null || b == null) {
    return false;
  } else if (a.isPersistent() != b.isPersistent()) {
    return false;
  } else if (!a.getAppContext().equals(b.getAppContext())) {
    return false;
  } else if (!a.getMessageLayer().equals(b.getMessageLayer())) {
    return false;
  } else if (!a.getDescription().equals(b.getDescription())) {
    return false;
  }
  return true;
}
origin: eclipse-ee4j/glassfish

private void _deleteStoredRegistration(String regId,
    RegistrationContext ctx) {
  if (ctx.isPersistent()) {
    getRegStore().delete(ctx);
  }
}
origin: org.glassfish.main.security/jaspic.provider.framework

private void _storeRegistration(String regId,
    RegistrationContext ctx, AuthConfigProvider p, Map properties) {
  String className = null;
  if (p != null) {
    className = p.getClass().getName();
  }
  if (propertiesContainAnyNonStringValues(properties)) {
    throw new IllegalArgumentException("AuthConfigProvider cannot be registered - properties must all be of type String.");
  }
  if (ctx.isPersistent()) {
    getRegStore().store(className, ctx, properties);
  }
}
origin: org.glassfish.main.security/jaspic.provider.framework

private void _deleteStoredRegistration(String regId,
    RegistrationContext ctx) {
  if (ctx.isPersistent()) {
    getRegStore().delete(ctx);
  }
}
origin: org.glassfish.main.security/jaspic.provider.framework

@Override
public boolean equals(Object o) {
  if (o == null || !(o instanceof RegistrationContext)) {
    return false;
  }
  RegistrationContext target = (RegistrationContext) o;
  return ( EntryInfo.matchStrings(
    messageLayer, target.getMessageLayer()) &&
    EntryInfo.matchStrings(appContext, target.getAppContext()) &&
    isPersistent() == target.isPersistent() );
}
origin: org.glassfish.main.security/jaspic.provider.framework

RegistrationContextImpl(RegistrationContext ctx) {
  this.messageLayer = ctx.getMessageLayer();
  this.appContext = ctx.getAppContext();
  this.description = ctx.getDescription();
  this.isPersistent = ctx.isPersistent();
}
origin: eclipse-ee4j/glassfish

@Override
public boolean equals(Object o) {
  if (o == null || !(o instanceof RegistrationContext)) {
    return false;
  }
  RegistrationContext target = (RegistrationContext) o;
  return ( EntryInfo.matchStrings(
    messageLayer, target.getMessageLayer()) &&
    EntryInfo.matchStrings(appContext, target.getAppContext()) &&
    isPersistent() == target.isPersistent() );
}
origin: eclipse-ee4j/glassfish

RegistrationContextImpl(RegistrationContext ctx) {
  this.messageLayer = ctx.getMessageLayer();
  this.appContext = ctx.getAppContext();
  this.description = ctx.getDescription();
  this.isPersistent = ctx.isPersistent();
}
javax.security.auth.message.configAuthConfigFactory$RegistrationContextisPersistent

Javadoc

Get the persisted status from the registration context.

Popular methods of AuthConfigFactory$RegistrationContext

  • getAppContext
    Get the application context identifier from the registration context
  • getMessageLayer
    Get the layer name from the registration context
  • getDescription
    Get the description from the registration context

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • getSystemService (Context)
  • Path (java.nio.file)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • BoxLayout (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now