public class PolicyLevel extends NetObject
.NET documentation at https://learn.microsoft.com/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: System.Security.Permissions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Security.Permissions
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AddFullTrustAssembly(StrongName sn)
Invokes the .NET member AddFullTrustAssembly.
|
void |
AddFullTrustAssembly(StrongNameMembershipCondition snMC)
Invokes the .NET member AddFullTrustAssembly.
|
void |
AddNamedPermissionSet(NamedPermissionSet permSet)
Invokes the .NET member AddNamedPermissionSet.
|
static PolicyLevel |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into PolicyLevel, a cast assert is made to check if types are compatible. |
NamedPermissionSet |
ChangeNamedPermissionSet(java.lang.String name,
PermissionSet pSet)
Invokes the .NET member ChangeNamedPermissionSet.
|
static PolicyLevel |
CreateAppDomainLevel()
Invokes the .NET member CreateAppDomainLevel.
|
void |
FromXml(SecurityElement e)
Invokes the .NET member FromXml.
|
IList |
getFullTrustAssemblies()
Gets the value of the .NET property FullTrustAssemblies.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
java.lang.String |
getLabel()
Gets the value of the .NET property Label.
|
NamedPermissionSet |
GetNamedPermissionSet(java.lang.String name)
Invokes the .NET member GetNamedPermissionSet.
|
IList |
getNamedPermissionSets()
Gets the value of the .NET property NamedPermissionSets.
|
CodeGroup |
getRootCodeGroup()
Gets the value of the .NET property RootCodeGroup.
|
java.lang.String |
getStoreLocation()
Gets the value of the .NET property StoreLocation.
|
PolicyLevelType |
getType()
Gets the value of the .NET property Type.
|
void |
Recover()
Invokes the .NET member Recover.
|
void |
RemoveFullTrustAssembly(StrongName sn)
Invokes the .NET member RemoveFullTrustAssembly.
|
void |
RemoveFullTrustAssembly(StrongNameMembershipCondition snMC)
Invokes the .NET member RemoveFullTrustAssembly.
|
NamedPermissionSet |
RemoveNamedPermissionSet(NamedPermissionSet permSet)
Invokes the .NET member RemoveNamedPermissionSet.
|
NamedPermissionSet |
RemoveNamedPermissionSet(java.lang.String name)
Invokes the .NET member RemoveNamedPermissionSet.
|
void |
Reset()
Invokes the .NET member Reset.
|
PolicyStatement |
Resolve(Evidence evidence)
Invokes the .NET member Resolve.
|
CodeGroup |
ResolveMatchingCodeGroups(Evidence evidence)
Invokes the .NET member ResolveMatchingCodeGroups.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setRootCodeGroup(CodeGroup RootCodeGroup)
Sets the value of the .NET property RootCodeGroup.
|
SecurityElement |
ToXml()
Invokes the .NET member ToXml.
|
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
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void AddFullTrustAssembly(StrongName sn) throws java.lang.Throwable
sn - the argument of type StrongNamejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void AddFullTrustAssembly(StrongNameMembershipCondition snMC) throws java.lang.Throwable
snMC - the argument of type StrongNameMembershipConditionjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void AddNamedPermissionSet(NamedPermissionSet permSet) throws java.lang.Throwable
permSet - the argument of type NamedPermissionSetjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic 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
name - the argument of type java.lang.StringpSet - the argument of type PermissionSetjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static PolicyLevel CreateAppDomainLevel() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void FromXml(SecurityElement e) throws java.lang.Throwable
e - the argument of type SecurityElementjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic IList getFullTrustAssemblies() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic java.lang.String getLabel()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NamedPermissionSet GetNamedPermissionSet(java.lang.String name) throws java.lang.Throwable
name - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic IList getNamedPermissionSets() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic CodeGroup getRootCodeGroup() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getStoreLocation()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic PolicyLevelType getType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Recover()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void RemoveFullTrustAssembly(StrongName sn) throws java.lang.Throwable
sn - the argument of type StrongNamejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void RemoveFullTrustAssembly(StrongNameMembershipCondition snMC) throws java.lang.Throwable
snMC - the argument of type StrongNameMembershipConditionjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NamedPermissionSet RemoveNamedPermissionSet(NamedPermissionSet permSet) throws java.lang.Throwable
permSet - the argument of type NamedPermissionSetjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic NamedPermissionSet RemoveNamedPermissionSet(java.lang.String name) throws java.lang.Throwable
name - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Reset()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic PolicyStatement Resolve(Evidence evidence) throws java.lang.Throwable
evidence - the argument of type Evidencejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic CodeGroup ResolveMatchingCodeGroups(Evidence evidence) throws java.lang.Throwable
evidence - the argument of type Evidencejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setRootCodeGroup(CodeGroup RootCodeGroup) throws java.lang.Throwable
RootCodeGroup - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic SecurityElement ToXml() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLR