Package system.security.policy
Class CodeGroup
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.policy.CodeGroup
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
FileCodeGroup,FirstMatchCodeGroup,NetCodeGroup,UnionCodeGroup
public class CodeGroup extends NetObject
The base .NET class managing System.Security.Policy.CodeGroup, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Policy.CodeGroup
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.CodeGroupstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAddChild(CodeGroup group)static CodeGroupcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoCodeGroup, a cast assert is made to check if types are compatible.CodeGroupCopy()booleanEquals(CodeGroup cg, boolean compareChildren)voidFromXml(SecurityElement e)voidFromXml(SecurityElement e, PolicyLevel level)java.lang.StringgetAttributeString()IListgetChildren()java.lang.StringgetDescription()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 TypeIMembershipConditiongetMembershipCondition()java.lang.StringgetMergeLogic()java.lang.StringgetName()java.lang.StringgetPermissionSetName()PolicyStatementgetPolicyStatement()voidRemoveChild(CodeGroup group)PolicyStatementResolve(Evidence evidence)CodeGroupResolveMatchingCodeGroups(Evidence evidence)voidsetChildren(IList Children)voidsetDescription(java.lang.String Description)voidsetJCOInstance(JCObject instance)voidsetMembershipCondition(IMembershipCondition MembershipCondition)voidsetName(java.lang.String Name)voidsetPolicyStatement(PolicyStatement PolicyStatement)SecurityElementToXml()SecurityElementToXml(PolicyLevel level)
-
-
-
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.CodeGroup- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- 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 classNetObject- 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 classNetObject- 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 classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static CodeGroup cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoCodeGroup, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
CodeGroupinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Equals
public boolean Equals(CodeGroup cg, boolean compareChildren) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NullReferenceException, CultureNotFoundException, SecurityException, InvalidOperationException
-
Copy
public CodeGroup Copy() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ResolveMatchingCodeGroups
public CodeGroup ResolveMatchingCodeGroups(Evidence evidence) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Resolve
public PolicyStatement Resolve(Evidence evidence) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToXml
public SecurityElement ToXml() throws java.lang.Throwable, ArgumentException, ArgumentNullException, NullReferenceException, FormatException, ArgumentOutOfRangeException, CultureNotFoundException, SecurityException, InvalidOperationException, InvalidCastException, NotSupportedException, RankException, NotImplementedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNullReferenceExceptionFormatExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionSecurityExceptionInvalidOperationExceptionInvalidCastExceptionNotSupportedExceptionRankExceptionNotImplementedExceptionIndexOutOfRangeException
-
ToXml
public SecurityElement ToXml(PolicyLevel level) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NullReferenceException, ArgumentOutOfRangeException, FormatException, SecurityException, InvalidOperationException, InvalidCastException, NotSupportedException, NotImplementedException, IndexOutOfRangeException
-
AddChild
public void AddChild(CodeGroup group) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, NullReferenceException, CultureNotFoundException, SecurityException, InvalidOperationException
-
FromXml
public void FromXml(SecurityElement e) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException, CultureNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionCultureNotFoundException
-
FromXml
public void FromXml(SecurityElement e, PolicyLevel level) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, CultureNotFoundException
-
RemoveChild
public void RemoveChild(CodeGroup group) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NullReferenceException, CultureNotFoundException, SecurityException, InvalidOperationException
-
getChildren
public IList getChildren() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, NullReferenceException, CultureNotFoundException, SecurityException, InvalidOperationException
-
setChildren
public void setChildren(IList Children) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
-
getMembershipCondition
public IMembershipCondition getMembershipCondition() throws java.lang.Throwable, ArgumentException, ArgumentNullException, NullReferenceException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, SecurityException
-
setMembershipCondition
public void setMembershipCondition(IMembershipCondition MembershipCondition) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentNullException
-
getPolicyStatement
public PolicyStatement getPolicyStatement() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NullReferenceException, InvalidCastException, NotSupportedException, SecurityException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionNullReferenceExceptionInvalidCastExceptionNotSupportedExceptionSecurityException
-
setPolicyStatement
public void setPolicyStatement(PolicyStatement PolicyStatement) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeException
-
getAttributeString
public java.lang.String getAttributeString() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NullReferenceException, InvalidCastException, NotSupportedException, SecurityException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionNullReferenceExceptionInvalidCastExceptionNotSupportedExceptionSecurityException
-
getDescription
public java.lang.String getDescription() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setDescription
public void setDescription(java.lang.String Description) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMergeLogic
public java.lang.String getMergeLogic() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getName
public java.lang.String getName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setName
public void setName(java.lang.String Name) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getPermissionSetName
public java.lang.String getPermissionSetName() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NullReferenceException, InvalidCastException, NotSupportedException, SecurityException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionNullReferenceExceptionInvalidCastExceptionNotSupportedExceptionSecurityException
-
-