Examples of security()


Examples of org.infinispan.configuration.cache.Configuration.security()

            CacheWrapper existingCacheWrapper = caches.get(cacheName);
            if (existingCacheWrapper != null) {
               return null; //signal that the cache was created by someone else
            }
            c = getConfiguration(cacheName);
            if (c.security().authorization().enabled()) {
               // Don't even attempt to wire anything if we don't have LIFECYCLE privileges
               AuthorizationHelper.checkPermission(globalConfiguration.security(), c.security().authorization(), AuthorizationPermission.LIFECYCLE);
            }
            createdCacheWrapper = new CacheWrapper();
            if (caches.put(cacheName, createdCacheWrapper) != null) {
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.security()

               return null; //signal that the cache was created by someone else
            }
            c = getConfiguration(cacheName);
            if (c.security().authorization().enabled()) {
               // Don't even attempt to wire anything if we don't have LIFECYCLE privileges
               AuthorizationHelper.checkPermission(globalConfiguration.security(), c.security().authorization(), AuthorizationPermission.LIFECYCLE);
            }
            createdCacheWrapper = new CacheWrapper();
            if (caches.put(cacheName, createdCacheWrapper) != null) {
               throw new IllegalStateException("attempt to initialize the cache twice");
            }
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.security()

            CacheWrapper existingCacheWrapper = caches.get(cacheName);
            if (existingCacheWrapper != null) {
               return null; //signal that the cache was created by someone else
            }
            c = getConfiguration(cacheName);
            if (c.security().enabled()) {
               // Don't even attempt to wire anything if we don't have LIFECYCLE privileges
               AuthorizationHelper.checkPermission(globalConfiguration.security(), c.security().authorization(), AuthorizationPermission.LIFECYCLE);
            }
            createdCacheWrapper = new CacheWrapper();
            if (caches.put(cacheName, createdCacheWrapper) != null) {
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.security()

               return null; //signal that the cache was created by someone else
            }
            c = getConfiguration(cacheName);
            if (c.security().enabled()) {
               // Don't even attempt to wire anything if we don't have LIFECYCLE privileges
               AuthorizationHelper.checkPermission(globalConfiguration.security(), c.security().authorization(), AuthorizationPermission.LIFECYCLE);
            }
            createdCacheWrapper = new CacheWrapper();
            if (caches.put(cacheName, createdCacheWrapper) != null) {
               throw new IllegalStateException("attempt to initialize the cache twice");
            }
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.security()

            CacheWrapper existingCacheWrapper = caches.get(cacheName);
            if (existingCacheWrapper != null) {
               return null; //signal that the cache was created by someone else
            }
            c = getConfiguration(cacheName);
            if (c.security().authorization().enabled()) {
               // Don't even attempt to wire anything if we don't have LIFECYCLE privileges
               authzHelper.checkPermission(c.security().authorization(), AuthorizationPermission.LIFECYCLE);
            }
            createdCacheWrapper = new CacheWrapper();
            if (caches.put(cacheName, createdCacheWrapper) != null) {
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.security()

               return null; //signal that the cache was created by someone else
            }
            c = getConfiguration(cacheName);
            if (c.security().authorization().enabled()) {
               // Don't even attempt to wire anything if we don't have LIFECYCLE privileges
               authzHelper.checkPermission(c.security().authorization(), AuthorizationPermission.LIFECYCLE);
            }
            createdCacheWrapper = new CacheWrapper();
            if (caches.put(cacheName, createdCacheWrapper) != null) {
               throw new IllegalStateException("attempt to initialize the cache twice");
            }
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.security()

            CacheWrapper existingCacheWrapper = caches.get(cacheName);
            if (existingCacheWrapper != null) {
               return null; //signal that the cache was created by someone else
            }
            c = getConfiguration(cacheName);
            if (c.security().authorization().enabled()) {
               // Don't even attempt to wire anything if we don't have LIFECYCLE privileges
               authzHelper.checkPermission(c.security().authorization(), AuthorizationPermission.LIFECYCLE);
            }
            createdCacheWrapper = new CacheWrapper();
            if (caches.put(cacheName, createdCacheWrapper) != null) {
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.security()

               return null; //signal that the cache was created by someone else
            }
            c = getConfiguration(cacheName);
            if (c.security().authorization().enabled()) {
               // Don't even attempt to wire anything if we don't have LIFECYCLE privileges
               authzHelper.checkPermission(c.security().authorization(), AuthorizationPermission.LIFECYCLE);
            }
            createdCacheWrapper = new CacheWrapper();
            if (caches.put(cacheName, createdCacheWrapper) != null) {
               throw new IllegalStateException("attempt to initialize the cache twice");
            }
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.security()

                  Map<String, Role> globalRoles = g.security().authorization().roles();
                  assertTrue(globalRoles.containsKey("supervisor"));
                  assertTrue(globalRoles.get("supervisor").getPermissions().containsAll(Arrays.asList(AuthorizationPermission.READ, AuthorizationPermission.WRITE, AuthorizationPermission.EXEC)));

                  Configuration c = cm.getCache("secured").getCacheConfiguration();
                  assertTrue(c.security().authorization().enabled());
                  c.security().authorization().roles().containsAll(Arrays.asList("admin", "reader", "writer"));
               }
            });
            return null;
         }
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.security()

                  assertTrue(globalRoles.containsKey("supervisor"));
                  assertTrue(globalRoles.get("supervisor").getPermissions().containsAll(Arrays.asList(AuthorizationPermission.READ, AuthorizationPermission.WRITE, AuthorizationPermission.EXEC)));

                  Configuration c = cm.getCache("secured").getCacheConfiguration();
                  assertTrue(c.security().authorization().enabled());
                  c.security().authorization().roles().containsAll(Arrays.asList("admin", "reader", "writer"));
               }
            });
            return null;
         }
      });
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.