public class JaccWebConstraintsTranslator extends Object
web.xml
and corresponding
annotations into JACC permissions, and writing this to the pluggable PolicyConfiguration
(which is
EE standard permission repository).Modifier and Type | Method and Description |
---|---|
static void |
translateConstraintsToPermissions(WebBundleDescriptor webBundleDescriptor,
javax.security.jacc.PolicyConfiguration policyConfiguration)
Translate the security constraints presents in the given
WebBundleDescriptor to JACC permissions
and store those in the given PolicyConfiguration . |
public static void translateConstraintsToPermissions(WebBundleDescriptor webBundleDescriptor, javax.security.jacc.PolicyConfiguration policyConfiguration) throws javax.security.jacc.PolicyContextException
WebBundleDescriptor
to JACC permissions
and store those in the given PolicyConfiguration
.webBundleDescriptor
- the source of the security constraintspolicyConfiguration
- the target of the security permissionsjavax.security.jacc.PolicyContextException
Copyright © 2019. All rights reserved.