Class Subject
public class Subject : Serializable, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, ISerializable
- Inheritance
-
Subject
- Implements
- Extension Methods
Constructors
Subject()
public Subject()
Subject(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Subject(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
Subject(bool, Set, Set<object>, Set<object>)
public Subject(bool arg0, Set arg1, Set<object> arg2, Set<object> arg3)
Parameters
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 java.lang.AutoCloseable
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
CreatePoolableInstance()
HPA initializer for Subject()
public static Subject CreatePoolableInstance()
Returns
CreatePoolableInstance(bool, Set, Set<object>, Set<object>)
HPA initializer for Subject(bool arg0, Java.Util.Set arg1, Java.Util.Set%3Cobject%3E arg2, Java.Util.Set%3Cobject%3E arg3)
public static Subject CreatePoolableInstance(bool arg0, Set arg1, Set<object> arg2, Set<object> arg3)
Parameters
Returns
DoAsPrivileged<T>(Subject, PrivilegedAction<T>, AccessControlContext)
public static T DoAsPrivileged<T>(Subject arg0, PrivilegedAction<T> arg1, AccessControlContext arg2)
Parameters
arg0Subjectarg1PrivilegedAction<T>arg2AccessControlContext
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
arg0Subjectarg1PrivilegedExceptionAction<T>arg2AccessControlContext
Returns
- T
T
Type Parameters
T
Exceptions
DoAs<T>(Subject, PrivilegedAction<T>)
public static T DoAs<T>(Subject arg0, PrivilegedAction<T> arg1)
Parameters
arg0Subjectarg1PrivilegedAction<T>
Returns
- T
T
Type Parameters
T
DoAs<T>(Subject, PrivilegedExceptionAction<T>)
public static T DoAs<T>(Subject arg0, PrivilegedExceptionAction<T> arg1)
Parameters
arg0Subjectarg1PrivilegedExceptionAction<T>
Returns
- T
T
Type Parameters
T
Exceptions
GetPrincipals<T>(Class)
public Set<T> GetPrincipals<T>(Class arg0) where T : IPrincipal
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()