diff --git a/prj/coherence-jcache/src/main/java/com/tangosol/coherence/jcache/common/ContainerHelper.java b/prj/coherence-jcache/src/main/java/com/tangosol/coherence/jcache/common/ContainerHelper.java index f663c73dcaf8e..5cfbc58ebe9d0 100644 --- a/prj/coherence-jcache/src/main/java/com/tangosol/coherence/jcache/common/ContainerHelper.java +++ b/prj/coherence-jcache/src/main/java/com/tangosol/coherence/jcache/common/ContainerHelper.java @@ -1,27 +1,20 @@ /* - * Copyright (c) 2000, 2022, Oracle and/or its affiliates. + * Copyright (c) 2000, 2025, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package com.tangosol.coherence.jcache.common; -import com.oracle.coherence.common.base.Logger; - -import com.tangosol.coherence.jcache.CoherenceBasedCachingProvider; - import com.tangosol.net.ConfigurableCacheFactory; import com.tangosol.net.ExtensibleConfigurableCacheFactory; import com.tangosol.net.events.EventInterceptor; import com.tangosol.net.events.application.LifecycleEvent; -import java.security.AccessController; -import java.security.PrivilegedAction; +import com.tangosol.net.security.SecurityHelper; -import javax.cache.Caching; - -import javax.cache.spi.CachingProvider; +import java.security.PrivilegedAction; /** * Helpers for supporting Coherence JCache in Container Environment. @@ -58,7 +51,7 @@ public static boolean isContainerContext(ExtensibleConfigurableCacheFactory eccf */ public static boolean isWLSContainer() { - String result = AccessController.doPrivileged(new PrivilegedAction() + String result = SecurityHelper.doPrivileged(new PrivilegedAction() { public String run() {