All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.ejb.deployment.AccessControlEntry

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

public class AccessControlEntry
extends Object
implements Serializable
The class AccessControlEntry associates a list of security identities with an enterprise Bean's method. The specified identities are permitted to invoke the enterprise Bean's method.

The Method that is associated with an AccessControlEntry must be a Method of the enterprise Bean class and the method must be one of the following: a business method, an ejbCreate(...) method, a finder method, or the ejbDestroy method.

If the Method used in an AccessControlEntry is null, then the AccessControlEntry is considered to be associated with the entire Bean. A Bean-level AccessControlEntry provides the default value for the methods that do not have a method-level AccessControlEntry.


Constructor Index

 o AccessControlEntry()
Constructor.
 o AccessControlEntry(Method)
Construct an AccessControlEntry for the specified enterprise Bean's method.
 o AccessControlEntry(Method, Identity[])
Construct an AccessControlEntry for the specified enterprise Bean's method.

Method Index

 o getAllowedIdentities()
Get the array of Identities that are permitted to invoke this method.
 o getAllowedIdentities(int)
Get the Identity at the specified index from the array of Identities that are permitted to invoke this method.
 o getMethod()
Get the method to which this AccessControlEntry applies.
 o setAllowedIdentities(Identity[])
Set the array of Identities that are permitted to invoke this method.
 o setAllowedIdentities(int, Identity)
Set the Identity at the specified index in the array of Identities that are permitted to invoke this method.
 o setMethod(Method)
Set the method to which this AccessControlEntry applies.

Constructors

 o AccessControlEntry
 public AccessControlEntry()
Constructor.

 o AccessControlEntry
 public AccessControlEntry(Method method)
Construct an AccessControlEntry for the specified enterprise Bean's method. If method is null, the entry is considered to be the default AccessControlEntry for the enterprise Bean.

Parameters:
method - An enterprise Bean's method, or null if this is the default AccessControlEntry for the enterprise Bean.
 o AccessControlEntry
 public AccessControlEntry(Method method,
                           Identity identities[])
Construct an AccessControlEntry for the specified enterprise Bean's method. If method is null, the entry is considered to be the default AccessControlEntry for the enterprise Bean.

Parameters:
method - An enterprise Bean's method, or null if this is the default AccessControlEntry for the enterprise Bean.
identities - An array of security Identities that are permitted to invoke this method.

Methods

 o getMethod
 public Method getMethod()
Get the method to which this AccessControlEntry applies.

Returns:
An enterprise Bean's method to which this AccessControlEntry applies. If the return value is null, this is the default AccessControlEntry for the enterprise Bean.
 o setMethod
 public void setMethod(Method value)
Set the method to which this AccessControlEntry applies.

Parameters:
value - An enterprise Bean's method, or null if this is the default AccessControlEntry for the enterprise Bean.
 o getAllowedIdentities
 public Identity[] getAllowedIdentities()
Get the array of Identities that are permitted to invoke this method.

Returns:
An array of security Identities that are permitted to invoke this method.
 o setAllowedIdentities
 public void setAllowedIdentities(Identity values[])
Set the array of Identities that are permitted to invoke this method.

Parameters:
values - An array of security Identities that are permitted to invoke this method.
 o getAllowedIdentities
 public Identity getAllowedIdentities(int index)
Get the Identity at the specified index from the array of Identities that are permitted to invoke this method.

Parameters:
index - The index in the array.
Returns:
The Identity at the specified index.
 o setAllowedIdentities
 public void setAllowedIdentities(int index,
                                  Identity value)
Set the Identity at the specified index in the array of Identities that are permitted to invoke this method.

Parameters:
index - The index in the array.
identity - The Identity to be set at the specified index.

All Packages  Class Hierarchy  This Package  Previous  Next  Index