Examples of DomainInfo


Examples of org.jboss.security.authentication.JBossCachedAuthenticationManager.DomainInfo

    /** {@inheritDoc} */
    @Override
    public void onEntryEviction(Map<Principal, DomainInfo> evicted) {
        for (Entry<Principal, DomainInfo> entry : evicted.entrySet()) {
            DomainInfo domainInfo = entry.getValue();
            domainInfo.logout();
        }
    }
View Full Code Here

Examples of org.jboss.security.authentication.JBossCachedAuthenticationManager.DomainInfo

    /** {@inheritDoc} */
    @Override
    public void onEntryEviction(Map<Principal, DomainInfo> evicted) {
        for (Entry<Principal, DomainInfo> entry : evicted.entrySet()) {
            DomainInfo domainInfo = entry.getValue();
            domainInfo.logout();
        }
    }
View Full Code Here

Examples of org.jboss.security.authentication.JBossCachedAuthenticationManager.DomainInfo

    /** {@inheritDoc} */
    @Override
    public void onEntryEviction(Map<Principal, DomainInfo> evicted) {
        for (Entry<Principal, DomainInfo> entry : evicted.entrySet()) {
            DomainInfo domainInfo = entry.getValue();
            domainInfo.logout();
        }
    }
View Full Code Here

Examples of org.jboss.security.plugins.auth.JaasSecurityManagerBase.DomainInfo

    @return true if the principal was authenticated, false otherwise.
    */
   public boolean isValid(Principal principal, Object credential, Subject activeSubject)
   {
      // Check the cache first
      DomainInfo cacheInfo = getCacheInfo(principal, true);
      if (trace)
         log.trace("Begin isValid, principal:" + principal + ", cache info: " + cacheInfo);

      boolean isValid = false;
      if (principal != null && principal.getName() != null)
      {
         synchronized (principal.getName().intern())
         {
            if (cacheInfo != null)
            {
               isValid = validateCache(cacheInfo, credential, activeSubject);
               cacheInfo.release();
            }
            if (isValid == false)
               isValid = authenticate(principal, credential, activeSubject);
         }
      }
      else
      {
         if (cacheInfo != null)
            cacheInfo.release();
         isValid = authenticate(principal, credential, activeSubject);
      }
      if (trace)
         log.trace("End isValid, " + isValid);
      return isValid;
View Full Code Here

Examples of org.jboss.security.plugins.auth.JaasSecurityManagerBase.DomainInfo

         return principal;
      Principal result = principal;
      // Get the CallerPrincipal group member
      synchronized (domainCache)
      {
         DomainInfo info = getCacheInfo(principal, false);
         if (trace)
            log.trace("getPrincipal, cache info: " + info);
         if (info != null)
         {
            result = info.callerPrincipal;
            // If the mapping did not have a callerPrincipal just use principal
            if (result == null)
               result = principal;
            info.release();
         }
      }

      return result;
   }
View Full Code Here

Examples of org.jboss.security.plugins.auth.JaasSecurityManagerBase.DomainInfo

   private DomainInfo getCacheInfo(Principal principal, boolean allowRefresh)
   {
      if (domainCache == null)
         return null;

      DomainInfo cacheInfo = null;
      synchronized (domainCache)
      {
         if (allowRefresh == true)
            cacheInfo = (DomainInfo) domainCache.get(principal);
         else
            cacheInfo = (DomainInfo) domainCache.peek(principal);
         if (cacheInfo != null)
            cacheInfo.acquire();
      }
      return cacheInfo;
   }
View Full Code Here

Examples of org.jboss.security.plugins.auth.JaasSecurityManagerBase.DomainInfo

      if (domainCache instanceof TimedCachePolicy)
      {
         TimedCachePolicy cache = (TimedCachePolicy) domainCache;
         lifetime = cache.getDefaultLifetime();
      }
      DomainInfo info = new DomainInfo(lifetime);
      info.loginCtx = lc;
      info.subject = new Subject();
      SubjectActions.copySubject(subject, info.subject, true, this.deepCopySubjectOption);
      info.credential = credential;
View Full Code Here

Examples of org.jfree.data.DomainInfo

        ParamChecks.nullNotPermitted(dataset, "dataset");

        Range result;
        // if the dataset implements DomainInfo, life is easier
        if (dataset instanceof DomainInfo) {
            DomainInfo info = (DomainInfo) dataset;
            result = info.getDomainBounds(includeInterval);
        }
        else {
            result = iterateDomainBounds(dataset, includeInterval);
        }
        return result;
View Full Code Here

Examples of org.jfree.data.DomainInfo

        }

        Range result = null;
        // if the dataset implements DomainInfo, life is easier
        if (dataset instanceof DomainInfo) {
            DomainInfo info = (DomainInfo) dataset;
            result = info.getDomainBounds(includeInterval);
        }
        else {
            result = iterateDomainBounds(dataset, includeInterval);
        }
        return result;
View Full Code Here

Examples of org.jfree.data.DomainInfo

    public static Number findMinimumDomainValue(XYDataset dataset) {
        ParamChecks.nullNotPermitted(dataset, "dataset");
        Number result;
        // if the dataset implements DomainInfo, life is easy
        if (dataset instanceof DomainInfo) {
            DomainInfo info = (DomainInfo) dataset;
            return new Double(info.getDomainLowerBound(true));
        }
        else {
            double minimum = Double.POSITIVE_INFINITY;
            int seriesCount = dataset.getSeriesCount();
            for (int series = 0; series < seriesCount; series++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.