Package com.sun.enterprise.security.jacc
Class JaccWebConstraintsTranslator
- java.lang.Object
-
- com.sun.enterprise.security.jacc.JaccWebConstraintsTranslator
-
public class JaccWebConstraintsTranslator extends Object
This class is used for translating security constrains fromweb.xml
and corresponding annotations into JACC permissions, and writing this to the pluggablePolicyConfiguration
(which is EE standard permission repository).- Author:
- Harpreet Singh, Jean-Francois Arcand, Ron Monzillo, Arjan Tijms (refactoring)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
translateConstraintsToPermissions(WebBundleDescriptor webBundleDescriptor, jakarta.security.jacc.PolicyConfiguration policyConfiguration)
Translate the security constraints presents in the givenWebBundleDescriptor
to JACC permissions and store those in the givenPolicyConfiguration
.
-
-
-
Method Detail
-
translateConstraintsToPermissions
public static void translateConstraintsToPermissions(WebBundleDescriptor webBundleDescriptor, jakarta.security.jacc.PolicyConfiguration policyConfiguration) throws jakarta.security.jacc.PolicyContextException
Translate the security constraints presents in the givenWebBundleDescriptor
to JACC permissions and store those in the givenPolicyConfiguration
.- Parameters:
webBundleDescriptor
- the source of the security constraintspolicyConfiguration
- the target of the security permissions- Throws:
jakarta.security.jacc.PolicyContextException
-
-