public class PolicyLevel extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Policy.PolicyLevel
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.Security.Policy.PolicyLevel
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
PolicyLevel() |
PolicyLevel(java.lang.Object instance)
Internal constructor.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public PolicyLevel()
throws java.lang.Throwable
java.lang.Throwablepublic PolicyLevel(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic void AddFullTrustAssembly(StrongName sn) throws java.lang.Throwable, ArgumentNullException, NullReferenceException, ArgumentException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, NotSupportedException, XmlSyntaxException, ObjectDisposedException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentNullExceptionNullReferenceExceptionArgumentExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionXmlSyntaxExceptionObjectDisposedExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic void AddFullTrustAssembly(StrongNameMembershipCondition snMC) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, CultureNotFoundException, IndexOutOfRangeException, NullReferenceException, XmlSyntaxException, OutOfMemoryException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionXmlSyntaxExceptionOutOfMemoryExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic void AddNamedPermissionSet(NamedPermissionSet permSet) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, CultureNotFoundException, IndexOutOfRangeException, NullReferenceException, XmlSyntaxException, OutOfMemoryException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionXmlSyntaxExceptionOutOfMemoryExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic static PolicyLevel cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into PolicyLevel, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedPolicyLevel instancejava.lang.Throwable - in case of error during cast operationpublic NamedPermissionSet ChangeNamedPermissionSet(java.lang.String name, PermissionSet pSet) throws java.lang.Throwable, ArgumentNullException, NullReferenceException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, SecurityException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, XmlSyntaxException, RankException
java.lang.ThrowableArgumentNullExceptionNullReferenceExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionSecurityExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionXmlSyntaxExceptionRankExceptionpublic static PolicyLevel CreateAppDomainLevel() throws java.lang.Throwable, InvalidOperationException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, NotImplementedException, ArgumentOutOfRangeException
public void FromXml(SecurityElement e) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException, NullReferenceException, ObjectDisposedException, AbandonedMutexException, RankException, XmlSyntaxException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionNullReferenceExceptionObjectDisposedExceptionAbandonedMutexExceptionRankExceptionXmlSyntaxExceptionNotSupportedExceptionpublic IList getFullTrustAssemblies() throws java.lang.Throwable, ArgumentException, SecurityException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, CultureNotFoundException, IndexOutOfRangeException, NullReferenceException, XmlSyntaxException, OutOfMemoryException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentExceptionSecurityExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionXmlSyntaxExceptionOutOfMemoryExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic java.lang.String getLabel()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
CultureNotFoundException,
ArgumentOutOfRangeException,
OutOfMemoryException,
FormatException
public NamedPermissionSet GetNamedPermissionSet(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, NotSupportedException, NullReferenceException, XmlSyntaxException, ObjectDisposedException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionNullReferenceExceptionXmlSyntaxExceptionObjectDisposedExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic IList getNamedPermissionSets() throws java.lang.Throwable, ArgumentException, SecurityException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, CultureNotFoundException, IndexOutOfRangeException, NullReferenceException, XmlSyntaxException, OutOfMemoryException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentExceptionSecurityExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionXmlSyntaxExceptionOutOfMemoryExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic CodeGroup getRootCodeGroup() throws java.lang.Throwable, ArgumentException, SecurityException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, CultureNotFoundException, IndexOutOfRangeException, NullReferenceException, XmlSyntaxException, OutOfMemoryException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentExceptionSecurityExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionXmlSyntaxExceptionOutOfMemoryExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic java.lang.String getStoreLocation()
throws java.lang.Throwable,
InvalidOperationException,
IndexOutOfRangeException
java.lang.ThrowableInvalidOperationExceptionIndexOutOfRangeExceptionpublic PolicyLevelType getType() throws java.lang.Throwable
java.lang.Throwablepublic void Recover()
throws java.lang.Throwable,
PolicyException,
ArgumentException
java.lang.ThrowablePolicyExceptionArgumentExceptionpublic void RemoveFullTrustAssembly(StrongName sn) throws java.lang.Throwable, ArgumentNullException, NullReferenceException, ArgumentException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, NotSupportedException, XmlSyntaxException, ObjectDisposedException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentNullExceptionNullReferenceExceptionArgumentExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionXmlSyntaxExceptionObjectDisposedExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic void RemoveFullTrustAssembly(StrongNameMembershipCondition snMC) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, CultureNotFoundException, IndexOutOfRangeException, NullReferenceException, XmlSyntaxException, OutOfMemoryException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionXmlSyntaxExceptionOutOfMemoryExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic NamedPermissionSet RemoveNamedPermissionSet(NamedPermissionSet permSet) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, NotSupportedException, NullReferenceException, XmlSyntaxException, ObjectDisposedException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionNullReferenceExceptionXmlSyntaxExceptionObjectDisposedExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic NamedPermissionSet RemoveNamedPermissionSet(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, CultureNotFoundException, IndexOutOfRangeException, NullReferenceException, XmlSyntaxException, OutOfMemoryException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionXmlSyntaxExceptionOutOfMemoryExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic void Reset()
throws java.lang.Throwable,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
NotImplementedException,
SecurityException,
RankException,
MissingMethodException,
TargetInvocationException,
InvalidCastException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionNotImplementedExceptionSecurityExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionInvalidCastExceptionpublic PolicyStatement Resolve(Evidence evidence) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, XmlSyntaxException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, NullReferenceException, MissingMethodException, TargetInvocationException, FormatException, InvalidCastException, NotSupportedException, SecurityException, TargetParameterCountException, PolicyException, SerializationException, NotImplementedException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionXmlSyntaxExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionNullReferenceExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionInvalidCastExceptionNotSupportedExceptionSecurityExceptionTargetParameterCountExceptionPolicyExceptionSerializationExceptionNotImplementedExceptionpublic CodeGroup ResolveMatchingCodeGroups(Evidence evidence) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, NotSupportedException, NullReferenceException, XmlSyntaxException, ObjectDisposedException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionNullReferenceExceptionXmlSyntaxExceptionObjectDisposedExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setRootCodeGroup(CodeGroup RootCodeGroup) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SecurityException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, CultureNotFoundException, IndexOutOfRangeException, NullReferenceException, XmlSyntaxException, OutOfMemoryException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSecurityExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionXmlSyntaxExceptionOutOfMemoryExceptionRankExceptionMissingMethodExceptionTargetInvocationExceptionpublic SecurityElement ToXml() throws java.lang.Throwable, ArgumentException, SecurityException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, CultureNotFoundException, IndexOutOfRangeException, NullReferenceException, XmlSyntaxException, OutOfMemoryException, RankException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentExceptionSecurityExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNullReferenceExceptionXmlSyntaxExceptionOutOfMemoryExceptionRankExceptionMissingMethodExceptionTargetInvocationException