Skip to content

Commit

Permalink
Enh 37534252 - [37393280->25.03] Create a wrapper to hide SecurityMan…
Browse files Browse the repository at this point in the history
…ager usage

(merge main -> ce/main 113843)

[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 113846]
  • Loading branch information
thegridman committed Jan 29, 2025
1 parent db096d0 commit 6a505ba
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -58,7 +51,7 @@ public static boolean isContainerContext(ExtensibleConfigurableCacheFactory eccf
*/
public static boolean isWLSContainer()
{
String result = AccessController.doPrivileged(new PrivilegedAction<String>()
String result = SecurityHelper.doPrivileged(new PrivilegedAction<String>()
{
public String run()
{
Expand Down

0 comments on commit 6a505ba

Please sign in to comment.