Class SocketAccess


  • public final class SocketAccess
    extends java.lang.Object
    This plugin uses azure libraries to connect to azure storage services. For these remote calls the plugin needs SocketPermission 'connect' to establish connections. This class wraps the operations requiring access in AccessController.doPrivileged(PrivilegedAction) blocks.
    • 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.BlobStorageException
        java.net.URISyntaxException