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.
-
Client
- Run the enterprise bean method with the client's Identity.
-
SpecifiedUser
- Run the enterprise bean method with the Identity of a specified user
account.
-
System
- Run the enterprise bean method with the Identity of a "privileged
account".
-
SecurityDescriptor()
- Constructor.
-
getAllowedUser(int)
- Get the Identity at the specified index in the array of Identities that
are granted access to execute the enterprise bean method.
-
getAllowedUsers()
- Get the array of Identities that are granted access to execute the
enterprise bean method.
-
getRunAsAttribute()
- Get the "runAsAttribute" security attribute.
-
getRunAsIdentity()
- Get the Identity of the specified user account with whose credentials
to run the enterprise bean method.
-
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.
-
setAllowedUsers(Identity[])
- Set the array of Identities that are granted access to execute the
enterprise bean method.
-
setRunAsAttribute(int)
- Set the "runAsAttribute" security attribute.
-
setRunAsIdentity(Identity)
- Set the Identity of the specified user account with whose credentials
to run the enterprise bean method.
Client
public static final int Client
- Run the enterprise bean method with the client's Identity.
SpecifiedUser
public static final int SpecifiedUser
- Run the enterprise bean method with the Identity of a specified user
account.
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.
SecurityDescriptor
public SecurityDescriptor()
- Constructor.
getRunAsAttribute
public int getRunAsAttribute()
- Get the "runAsAttribute" security attribute.
- Returns:
- The runAs attribute. The value must be one of Client,
SpecifiedUser, and System.
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.
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.
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.
getAllowedUsers
public Identity[] getAllowedUsers()
- Get the array of Identities that are granted access to execute the
enterprise bean method.
- Returns:
- An array of Identities.
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.
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.
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