Class SocketAccess
- java.lang.Object
-
- org.opensearch.repositories.azure.SocketAccess
-
public final class SocketAccess extends java.lang.ObjectThis plugin uses azure libraries to connect to azure storage services. For these remote calls the plugin needsSocketPermission'connect' to establish connections. This class wraps the operations requiring access inAccessController.doPrivileged(PrivilegedAction)blocks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSocketAccess.StorageRunnable
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TdoPrivilegedException(java.security.PrivilegedExceptionAction<T> operation)static <T> TdoPrivilegedIOException(java.security.PrivilegedExceptionAction<T> operation)static voiddoPrivilegedVoidException(SocketAccess.StorageRunnable action)
-
-
-
Method Detail
-
doPrivilegedIOException
public static <T> T doPrivilegedIOException(java.security.PrivilegedExceptionAction<T> operation) throws java.io.IOException- Throws:
java.io.IOException
-
doPrivilegedException
public static <T> T doPrivilegedException(java.security.PrivilegedExceptionAction<T> operation) throws com.azure.storage.blob.models.BlobStorageException- Throws:
com.azure.storage.blob.models.BlobStorageException
-
doPrivilegedVoidException
public static void doPrivilegedVoidException(SocketAccess.StorageRunnable action) throws com.azure.storage.blob.models.BlobStorageException, java.net.URISyntaxException
- Throws:
com.azure.storage.blob.models.BlobStorageExceptionjava.net.URISyntaxException
-
-