Class Subject
public class Subject : Serializable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISerializable
- Inheritance
-
Subject
- Implements
- Inherited Members
- Extension Methods
Constructors
Subject()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Subject()
Subject(bool, Set, Set<object>, Set<object>)
public Subject(bool arg0, Set arg1, Set<object> arg2, Set<object> arg3)
Parameters
Subject(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public Subject(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Principals
public Set<Principal> Principals { get; }
Property Value
PrivateCredentials
public Set<object> PrivateCredentials { get; }
Property Value
PublicCredentials
public Set<object> PublicCredentials { get; }
Property Value
Methods
DoAsPrivileged<T>(Subject, PrivilegedAction<T>, AccessControlContext)
public static T DoAsPrivileged<T>(Subject arg0, PrivilegedAction<T> arg1, AccessControlContext arg2)
Parameters
arg0
Subjectarg1
PrivilegedAction<T>arg2
AccessControlContext
Returns
- T
T
Type Parameters
T
DoAsPrivileged<T>(Subject, PrivilegedExceptionAction<T>, AccessControlContext)
public static T DoAsPrivileged<T>(Subject arg0, PrivilegedExceptionAction<T> arg1, AccessControlContext arg2)
Parameters
arg0
Subjectarg1
PrivilegedExceptionAction<T>arg2
AccessControlContext
Returns
- T
T
Type Parameters
T
Exceptions
DoAs<T>(Subject, PrivilegedAction<T>)
public static T DoAs<T>(Subject arg0, PrivilegedAction<T> arg1)
Parameters
arg0
Subjectarg1
PrivilegedAction<T>
Returns
- T
T
Type Parameters
T
DoAs<T>(Subject, PrivilegedExceptionAction<T>)
public static T DoAs<T>(Subject arg0, PrivilegedExceptionAction<T> arg1)
Parameters
arg0
Subjectarg1
PrivilegedExceptionAction<T>
Returns
- T
T
Type Parameters
T
Exceptions
GetPrincipals<T>(Class)
public Set<T> GetPrincipals<T>(Class arg0) where T : IPrincipal, new()
Parameters
Returns
Type Parameters
GetPrivateCredentials<T>(Class)
public Set<T> GetPrivateCredentials<T>(Class arg0)
Parameters
Returns
Type Parameters
T
GetPublicCredentials<T>(Class)
public Set<T> GetPublicCredentials<T>(Class arg0)
Parameters
Returns
Type Parameters
T
GetSubject(AccessControlContext)
public static Subject GetSubject(AccessControlContext arg0)
Parameters
Returns
IsReadOnly()
public bool IsReadOnly()
Returns
SetReadOnly()
public void SetReadOnly()