Package system.security.policy
Class ApplicationTrust
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.policy.EvidenceBase
-
- system.security.policy.ApplicationTrust
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class ApplicationTrust extends EvidenceBase
The base .NET class managing System.Security.Policy.ApplicationTrust, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Policy.ApplicationTrust
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Security.Policy.ApplicationTruststatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ApplicationTrust()ApplicationTrust(java.lang.Object instance)Internal constructor.ApplicationTrust(ApplicationIdentity applicationIdentity)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApplicationTrustcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoApplicationTrust, a cast assert is made to check if types are compatible.EvidenceBaseClone()voidFromXml(SecurityElement element)ApplicationIdentitygetApplicationIdentity()PolicyStatementgetDefaultGrantSet()NetObjectgetExtraInfo()booleangetIsApplicationTrustedToRun()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypebooleangetPersist()voidsetApplicationIdentity(ApplicationIdentity ApplicationIdentity)voidsetDefaultGrantSet(PolicyStatement DefaultGrantSet)voidsetExtraInfo(NetObject ExtraInfo)voidsetIsApplicationTrustedToRun(boolean IsApplicationTrustedToRun)voidsetJCOInstance(JCObject instance)voidsetPersist(boolean Persist)SecurityElementToXml()
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Policy.ApplicationTrust- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ApplicationTrust
public ApplicationTrust(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
ApplicationTrust
public ApplicationTrust() throws java.lang.Throwable, ArgumentException, InvalidOperationException, NotSupportedException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionNotSupportedExceptionArgumentNullException
-
ApplicationTrust
public ApplicationTrust(ApplicationIdentity applicationIdentity) throws java.lang.Throwable, ArgumentException, InvalidOperationException, NotSupportedException, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionNotSupportedExceptionArgumentNullException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classEvidenceBase- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classEvidenceBase- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classEvidenceBase- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classEvidenceBase- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classEvidenceBase
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classEvidenceBase- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static ApplicationTrust cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoApplicationTrust, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
ApplicationTrustinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Clone
public EvidenceBase Clone() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, NotSupportedException, SerializationException, InvalidOperationException, SecurityException, NullReferenceException, IndexOutOfRangeException
- Overrides:
Clonein classEvidenceBase- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionFormatExceptionArgumentExceptionNotSupportedExceptionSerializationExceptionInvalidOperationExceptionSecurityExceptionNullReferenceExceptionIndexOutOfRangeException
-
ToXml
public SecurityElement ToXml() throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, SecurityException, NullReferenceException, SerializationException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionSecurityExceptionNullReferenceExceptionSerializationException
-
FromXml
public void FromXml(SecurityElement element) throws java.lang.Throwable, ArgumentNullException, ArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, NullReferenceException, FormatException, InvalidCastException, SecurityException, OverflowException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionNullReferenceExceptionFormatExceptionInvalidCastExceptionSecurityExceptionOverflowException
-
getIsApplicationTrustedToRun
public boolean getIsApplicationTrustedToRun() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIsApplicationTrustedToRun
public void setIsApplicationTrustedToRun(boolean IsApplicationTrustedToRun) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getPersist
public boolean getPersist() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setPersist
public void setPersist(boolean Persist) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getApplicationIdentity
public ApplicationIdentity getApplicationIdentity() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setApplicationIdentity
public void setApplicationIdentity(ApplicationIdentity ApplicationIdentity) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentNullException
-
getExtraInfo
public NetObject getExtraInfo() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentException, CultureNotFoundException, NullReferenceException, SecurityException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, SerializationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionArgumentExceptionCultureNotFoundExceptionNullReferenceExceptionSecurityExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionSerializationException
-
setExtraInfo
public void setExtraInfo(NetObject ExtraInfo) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDefaultGrantSet
public PolicyStatement getDefaultGrantSet() throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.ThrowableArgumentException
-
setDefaultGrantSet
public void setDefaultGrantSet(PolicyStatement DefaultGrantSet) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, NotSupportedException, ArgumentNullException, NullReferenceException, SecurityException, InvalidOperationException
-
-