Table of Contents

Class Subject

Namespace
Javax.Security.Auth
Assembly
MASES.JNet.dll
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

arg0 bool

bool

arg1 Set

Set

arg2 Set<object>

Set

arg3 Set<object>

Set

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

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Principals

public Set<Principal> Principals { get; }

Property Value

Set<Principal>

PrivateCredentials

public Set<object> PrivateCredentials { get; }

Property Value

Set<object>

PublicCredentials

public Set<object> PublicCredentials { get; }

Property Value

Set<object>

Methods

DoAsPrivileged<T>(Subject, PrivilegedAction<T>, AccessControlContext)

public static T DoAsPrivileged<T>(Subject arg0, PrivilegedAction<T> arg1, AccessControlContext arg2)

Parameters

arg0 Subject

Subject

arg1 PrivilegedAction<T>

PrivilegedAction

arg2 AccessControlContext

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 Subject

Subject

arg1 PrivilegedExceptionAction<T>

PrivilegedExceptionAction

arg2 AccessControlContext

AccessControlContext

Returns

T

T

Type Parameters

T

Exceptions

PrivilegedActionException

DoAs<T>(Subject, PrivilegedAction<T>)

public static T DoAs<T>(Subject arg0, PrivilegedAction<T> arg1)

Parameters

arg0 Subject

Subject

arg1 PrivilegedAction<T>

PrivilegedAction

Returns

T

T

Type Parameters

T

DoAs<T>(Subject, PrivilegedExceptionAction<T>)

public static T DoAs<T>(Subject arg0, PrivilegedExceptionAction<T> arg1)

Parameters

arg0 Subject

Subject

arg1 PrivilegedExceptionAction<T>

PrivilegedExceptionAction

Returns

T

T

Type Parameters

T

Exceptions

PrivilegedActionException

GetPrincipals<T>(Class)

public Set<T> GetPrincipals<T>(Class arg0) where T : IPrincipal, new()

Parameters

arg0 Class

Class

Returns

Set<T>

Set

Type Parameters

T

IPrincipal

GetPrivateCredentials<T>(Class)

public Set<T> GetPrivateCredentials<T>(Class arg0)

Parameters

arg0 Class

Class

Returns

Set<T>

Set

Type Parameters

T

GetPublicCredentials<T>(Class)

public Set<T> GetPublicCredentials<T>(Class arg0)

Parameters

arg0 Class

Class

Returns

Set<T>

Set

Type Parameters

T

GetSubject(AccessControlContext)

public static Subject GetSubject(AccessControlContext arg0)

Parameters

arg0 AccessControlContext

AccessControlContext

Returns

Subject

Subject

IsReadOnly()

public bool IsReadOnly()

Returns

bool

bool

SetReadOnly()

public void SetReadOnly()