|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.security.impl.jacc.JBossSecurityProviderImpl
Security provider service.
This service reads the configured Policy Service and portal server config at start time, and uses
those to provide a single access point for all security policy operations (configuration and access check).
This implementation of the JBossSecurityProvider uses a jacc based security provider (based on the default
jacc implementations of the appserver) to provide the required functionality.
JBossSecurityProvider,
PolicyConfigurationFactory,
Policy,
PortalPolicyConfigurationFactory,
PortalJaccPolicy| Constructor Summary | |
JBossSecurityProviderImpl()
|
|
| Method Summary | |
javax.management.ObjectName |
getConfig()
|
javax.management.MBeanServer |
getMBeanServer()
|
java.security.Policy |
getPolicy()
Get the active security policy that allows security checks |
java.lang.String |
getPolicyAttributeName()
|
javax.security.jacc.PolicyConfiguration |
getPolicyConfiguration(java.lang.String policyContextID,
boolean remove)
Get the policy configuration interface that allows to configure the policy |
javax.management.ObjectName |
getPolicyName()
|
ServerConfig |
getServerConfig()
Get the server configuration |
boolean |
inService(java.lang.String policyContextID)
Test if the provided context id has an active policy configuration. |
void |
setConfig(javax.management.ObjectName policyName)
|
void |
setMBeanServer(javax.management.MBeanServer server)
|
void |
setPolicyAttributeName(java.lang.String policyAttributeName)
|
void |
setPolicyName(javax.management.ObjectName policyName)
|
void |
start()
read the mbean descriptor and get the policy via the defined attribute, the server config via the defined attribute name, and the policy configuration factory via the type (class) of the configured policy. |
void |
stop()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JBossSecurityProviderImpl()
| Method Detail |
public void start()
throws java.lang.Exception
java.lang.Exception
public void stop()
throws java.lang.Exception
java.lang.Exceptionpublic javax.management.ObjectName getConfig()
public void setConfig(javax.management.ObjectName policyName)
public ServerConfig getServerConfig()
JBossSecurityProvider
getServerConfig in interface JBossSecurityProviderpublic javax.management.ObjectName getPolicyName()
public void setPolicyName(javax.management.ObjectName policyName)
public java.lang.String getPolicyAttributeName()
public void setPolicyAttributeName(java.lang.String policyAttributeName)
public javax.management.MBeanServer getMBeanServer()
public void setMBeanServer(javax.management.MBeanServer server)
public boolean inService(java.lang.String policyContextID)
throws javax.security.jacc.PolicyContextException
inService in interface SecurityProviderpolicyContextID - the identifier of the policy context to test
javax.security.jacc.PolicyContextException
public javax.security.jacc.PolicyConfiguration getPolicyConfiguration(java.lang.String policyContextID,
boolean remove)
throws javax.security.jacc.PolicyContextException
getPolicyConfiguration in interface SecurityProviderpolicyContextID - the policy context identifierremove - true, if the policy configuration should be removed from the policy
javax.security.jacc.PolicyContextExceptionpublic java.security.Policy getPolicy()
getPolicy in interface SecurityProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||