com.groupbyinc.flux.bootstrap.FilePermissionUtils.class Maven / Gradle / Ivy
???? 4 ? 1com/groupbyinc/flux/bootstrap/FilePermissionUtils java/lang/Object FilePermissionUtils.java VERSION_IS_AT_LEAST_JAVA_9 Z ()V
this 3Lcom/groupbyinc/flux/bootstrap/FilePermissionUtils; addSingleFilePath D(Ljava/security/Permissions;Ljava/nio/file/Path;Ljava/lang/String;)V java/io/IOException .Lcom/groupbyinc/flux/common/SuppressForbidden; reason Nonly place where creating Java-9 compatible FilePermission objects is possible java/io/FilePermission java/nio/file/Path toString ()Ljava/lang/String; '(Ljava/lang/String;Ljava/lang/String;)V
java/security/Permissions add (Ljava/security/Permission;)V " #
! $ & java/nio/file/LinkOption ( java/nio/file/Files * exists 2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z , -
+ .
toRealPath 1([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path; 0 1 2 java/lang/String 4 equals (Ljava/lang/Object;)Z 6 7
5 8 realPath Ljava/nio/file/Path; policy Ljava/security/Permissions; path permissions Ljava/lang/String; addDirectoryPath V(Ljava/security/Permissions;Ljava/lang/String;Ljava/nio/file/Path;Ljava/lang/String;)V &com/groupbyinc/flux/bootstrap/Security C ensureDirectoryExists (Ljava/nio/file/Path;)V E F
D G java/lang/IllegalStateException I java/lang/StringBuilder K
L
Unable to access ' N append -(Ljava/lang/String;)Ljava/lang/StringBuilder; P Q
L R ' ( T -(Ljava/lang/Object;)Ljava/lang/StringBuilder; P V
L W ) Y
L *(Ljava/lang/String;Ljava/lang/Throwable;)V \
J ]
getFileSystem ()Ljava/nio/file/FileSystem; _ ` a java/nio/file/FileSystem c getSeparator e
d f - h e Ljava/io/IOException; configurationName )com/groupbyinc/flux/bootstrap/JavaVersion n current -()Lcom/groupbyinc/flux/bootstrap/JavaVersion; p q
o r 9 t parse ?(Ljava/lang/String;)Lcom/groupbyinc/flux/bootstrap/JavaVersion; v w
o x compareTo .(Lcom/groupbyinc/flux/bootstrap/JavaVersion;)I z {
o | Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions RuntimeInvisibleAnnotations
SourceFile ! ~ / *? ?
? ! ~ ? S*? Y+? ,? ? %? '? =+? )? /? 2+? )? 3 N+? -? ? 9? *? Y-? ,? ? %? * . $ : ; S <