All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.plugins.PluginSecurity.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4B*com/groupbyinc/flux/plugins/PluginSecurityjava/lang/ObjectPluginSecurity.java*com/groupbyinc/flux/cli/Terminal$Verbosity com/groupbyinc/flux/cli/Terminal	Verbosityjava/security/Policy$Parametersjava/security/Policy

Parameters%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup()V
this,Lcom/groupbyinc/flux/plugins/PluginSecurity;confirmPolicyExceptions5(Lcom/groupbyinc/flux/cli/Terminal;Ljava/util/Set;Z)V%com/groupbyinc/flux/cli/UserExceptionjava/util/ArrayList(Ljava/util/Collection;)V!
 "java/util/List$isEmpty()Z&'%(VERBOSE,Lcom/groupbyinc/flux/cli/Terminal$Verbosity;*+	,7plugin has a policy file with no additional permissions.printlnA(Lcom/groupbyinc/flux/cli/Terminal$Verbosity;Ljava/lang/String;)V01
	2java/util/Collections4sort(Ljava/util/List;)V67
58NORMAL:+	;;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=;@     WARNING: plugin requires additional permissions     @?iterator()Ljava/util/Iterator;AB%Cjava/util/IteratorEhasNextG'FHnext()Ljava/lang/Object;JKFLjava/lang/StringNjava/lang/StringBuilderP
Q* Sappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;UV
QWtoString()Ljava/lang/String;YZ
Q[SSee http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html]Jfor descriptions of what these permissions allow and the associated risks._prompt&(Lcom/groupbyinc/flux/cli/Terminal;Z)Vab
c
permissionLjava/lang/String;terminal"Lcom/groupbyinc/flux/cli/Terminal;permissions#Ljava/util/Set;Ljava/util/Set;batchZ	requested$Ljava/util/List;Ljava/util/List;q!Continue with installation? [y/N]sreadText&(Ljava/lang/String;)Ljava/lang/String;uv
	wyyequalsIgnoreCase(Ljava/lang/String;)Z{|
O}installation aborted by user(ILjava/lang/String;)V?
?textformatPermission.(Ljava/security/Permission;)Ljava/lang/String;"java/security/UnresolvedPermission?getUnresolvedType?Z
??getClass()Ljava/lang/Class;??
?java/lang/Class?getName?Z
??getUnresolvedName?Z
??java/security/Permission?
??length()I??
O?(C)Ljava/lang/StringBuilder;U?
Q?getUnresolvedActions?Z
??
getActions?Z
??Ljava/security/Permission;sbLjava/lang/StringBuilder;clazznameactionsparsePermissions9(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/util/Set;java/io/IOException?&java/security/NoSuchAlgorithmException?empty?tmp?%java/nio/file/attribute/FileAttribute?java/nio/file/Files?createTempFilev(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;??
??
JavaPolicy?java/security/URIParameter?java/nio/file/Path?toUri()Ljava/net/URI;????(Ljava/net/URI;)V?
??getInstanceK(Ljava/lang/String;Ljava/security/Policy$Parameters;)Ljava/security/Policy;??
?java/lang/RuntimeException?(Ljava/lang/Throwable;)V?
??,com/groupbyinc/flux/core/internal/io/IOUtils?rm([Ljava/nio/file/Path;)V??
??getProtectionDomain"()Ljava/security/ProtectionDomain;??
??getPermissionsF(Ljava/security/ProtectionDomain;)Ljava/security/PermissionCollection;??
?UNSUPPORTED_EMPTY_COLLECTION$Ljava/security/PermissionCollection;??	?'java/lang/UnsupportedOperationException?AJavaPolicy implementation does not support retrieving permissions?(Ljava/lang/String;)V?
??"java/security/PermissionCollection?java/security/Permissions?
?elements()Ljava/util/Enumeration;??
??list.(Ljava/util/Enumeration;)Ljava/util/ArrayList;??
5?
 Cimplies=(Ljava/security/ProtectionDomain;Ljava/security/Permission;)Z??
?add(Ljava/security/Permission;)V
?stream()Ljava/util/stream/Stream;
 "java/lang/invoke/LambdaMetafactory	metafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;


&(Ljava/lang/Object;)Ljava/lang/Object;??
?apply()Ljava/util/function/Function;java/util/stream/Streammap8(Ljava/util/function/Function;)Ljava/util/stream/Stream;java/util/stream/Collectors toSet()Ljava/util/stream/Collector;"#
!$collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;&'(
java/util/Set*emptyPolicyLjava/security/Policy;e(Ljava/security/NoSuchAlgorithmException;policyfileLjava/nio/file/Path;tmpDiremptyPolicyFileactualPermissionsCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable
Exceptions	SignatureI(Lcom/groupbyinc/flux/cli/Terminal;Ljava/util/Set;Z)VM(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/util/Set;BootstrapMethods
SourceFileInnerClasses 6/*??78,6K?? Y+?#N-?)?*?-/?3?u-?9*?<>?3*?<@?3*?<>?3-?D:?I?-?M?O:*?[?v@yA?B?C?E:?%?&F?3;<=
ab6?*?(*?<r?3*t?xM,z?~??YA?????7 ?f*gh*lm8HI
JKL)O:);??6[??QY?RLM*???*????M?*????M+,?XWN*???*????N?*??N-?-???+ ??W+-?XW:*???*????:?	*??:????+ ??W+?XW+?\?74?e????
??f,k?f^9?f8VSU
VWY$[*],^3_>aCcNdUe[h^iejqlwn?o?p?r:?QO?O?O	??6	?+??????M???Y,???̸?N?:??Y?տ??Y,S?????Y*???̸?:?:??Y?տ?߶?:??
??Y??Y??:??????:?I?'?M??:-????
????????????%?)?+?
 #?:NQ?7z ,-%
./N0-S
./?e??12?32
?42/?,-]?0-iwi??\5?8N~
? ?#?%?/?:?N?Q?S?]?i?q?{???????????:8?#?????a??????F*?;?<>?@A	
@	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy