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.
-
AccessControlEntry()
- Constructor.
-
AccessControlEntry(Method)
- Construct an AccessControlEntry for the specified enterprise Bean's
method.
-
AccessControlEntry(Method, Identity[])
- Construct an AccessControlEntry for the specified enterprise Bean's
method.
-
getAllowedIdentities()
- Get the array of Identities that are permitted to invoke this method.
-
getAllowedIdentities(int)
- Get the Identity at the specified index from the array of
Identities that are permitted to invoke this method.
-
getMethod()
- Get the method to which this AccessControlEntry applies.
-
setAllowedIdentities(Identity[])
- Set the array of Identities that are permitted to invoke this method.
-
setAllowedIdentities(int, Identity)
- Set the Identity at the specified index in the array of
Identities that are permitted to invoke this method.
-
setMethod(Method)
- Set the method to which this AccessControlEntry applies.
AccessControlEntry
public AccessControlEntry()
- Constructor.
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.
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.
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.
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.
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.
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.
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.
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