站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

EnterpriseBeanPolicyContextHandler (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb.plugins
Class EnterpriseBeanPolicyContextHandler

java.lang.Object
  extended byorg.jboss.ejb.plugins.EnterpriseBeanPolicyContextHandler
All Implemented Interfaces:
javax.security.jacc.PolicyContextHandler

public class EnterpriseBeanPolicyContextHandler
extends Object
implements javax.security.jacc.PolicyContextHandler

A PolicyContextHandler for the active EnterpriseBean

Version:
$Revison:$
Author:
Scott.Stark@jboss.org

Field Summary
static String EJB_CONTEXT_KEY
           
 
Constructor Summary
EnterpriseBeanPolicyContextHandler()
           
 
Method Summary
 Object getContext(String key, Object data)
          Access the EJB policy context data.
 String[] getKeys()
           
 boolean supports(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EJB_CONTEXT_KEY

public static final String EJB_CONTEXT_KEY
See Also:
Constant Field Values
Constructor Detail

EnterpriseBeanPolicyContextHandler

public EnterpriseBeanPolicyContextHandler()
Method Detail

getContext

public Object getContext(String key,
                         Object data)
                  throws javax.security.jacc.PolicyContextException
Access the EJB policy context data.

Specified by:
getContext in interface javax.security.jacc.PolicyContextHandler
Parameters:
key - - "javax.ejb.EnterpriseBean"
data - currently unused
Returns:
The active EnterpriseBean
Throws:
javax.security.jacc.PolicyContextException

getKeys

public String[] getKeys()
                 throws javax.security.jacc.PolicyContextException
Specified by:
getKeys in interface javax.security.jacc.PolicyContextHandler
Throws:
javax.security.jacc.PolicyContextException

supports

public boolean supports(String key)
                 throws javax.security.jacc.PolicyContextException
Specified by:
supports in interface javax.security.jacc.PolicyContextHandler
Throws:
javax.security.jacc.PolicyContextException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.