All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.ejb.deployment.SecurityDescriptor

java.lang.Object
   |
   +----javax.ejb.deployment.SecurityDescriptor

public class SecurityDescriptor
extends Object
The SecurityDescriptor descriptor defines security-related attributes for enterprise bean. A SecurityDescriptor can be used both at the level of the entire bean, or the level of individual methods.


Variable Index

 o Client
Run the enterprise bean method with the client's Identity.
 o SpecifiedUser
Run the enterprise bean method with the Identity of a specified user account.
 o System
Run the enterprise bean method with the Identity of a "privileged account".

Constructor Index

 o SecurityDescriptor()
Constructor.

Method Index

 o getAllowedUser(int)
Get the Identity at the specified index in the array of Identities that are granted access to execute the enterprise bean method.
 o getAllowedUsers()
Get the array of Identities that are granted access to execute the enterprise bean method.
 o getRunAsAttribute()
Get the "runAsAttribute" security attribute.
 o getRunAsIdentity()
Get the Identity of the specified user account with whose credentials to run the enterprise bean method.
 o setAllowedUser(int, Identity)
Set the Identity at the specified index in the array of Identities that are granted access to execute the enterprise bean method.
 o setAllowedUsers(Identity[])
Set the array of Identities that are granted access to execute the enterprise bean method.
 o setRunAsAttribute(int)
Set the "runAsAttribute" security attribute.
 o setRunAsIdentity(Identity)
Set the Identity of the specified user account with whose credentials to run the enterprise bean method.

Variables

 o Client
 public static final int Client
Run the enterprise bean method with the client's Identity.

 o SpecifiedUser
 public static final int SpecifiedUser
Run the enterprise bean method with the Identity of a specified user account.

 o System
 public static final int System
Run the enterprise bean method with the Identity of a "privileged account". The container maps the abstract notion of a "privileged account" to some privileged account on the target system, such as the database administrator, or the operating system administrator account.

Constructors

 o SecurityDescriptor
 public SecurityDescriptor()
Constructor.

Methods

 o getRunAsAttribute
 public int getRunAsAttribute()
Get the "runAsAttribute" security attribute.

Returns:
The runAs attribute. The value must be one of Client, SpecifiedUser, and System.
 o setRunAsAttribute
 public void setRunAsAttribute(int value)
Set the "runAsAttribute" security attribute.

Parameters:
value - The runAs attribute. The value must be one of Client, SpecifiedUser, and System.
 o getRunAsIdentity
 public Identity getRunAsIdentity()
Get the Identity of the specified user account with whose credentials to run the enterprise bean method. This attribute is consulted only if the value of the runAsAttribute is SpecifiedUser.

Returns:
The Identity to associate with the execution of the enterprise bean method.
 o setRunAsIdentity
 public void setRunAsIdentity(Identity value)
Set the Identity of the specified user account with whose credentials to run the enterprise bean method. This attribute is consulted only if the value of the runAsAttribute is set to SpecifiedUser.

Parameters:
value - The Identity to associate with the execution of the enterprise bean method.
 o getAllowedUsers
 public Identity[] getAllowedUsers()
Get the array of Identities that are granted access to execute the enterprise bean method.

Returns:
An array of Identities.
 o setAllowedUsers
 public void setAllowedUsers(Identity values[])
Set the array of Identities that are granted access to execute the enterprise bean method. param value An array of Identities.

 o getAllowedUser
 public Identity getAllowedUser(int index)
Get the Identity at the specified index in the array of Identities that are granted access to execute the enterprise bean method.

Parameters:
index - Index of the Identity to be obtained.
Returns:
The Identity at the specified index.
 o setAllowedUser
 public void setAllowedUser(int index,
                            Identity value)
Set the Identity at the specified index in the array of Identities that are granted access to execute the enterprise bean method.

Parameters:
index - Index of the Identity to be set.
value - The Identity to be set.

All Packages  Class Hierarchy  This Package  Previous  Next  Index