Uses of Class
jakarta.security.jacc.PolicyContextException
Packages that use PolicyContextException
-
Uses of PolicyContextException in jakarta.security.jacc
Methods in jakarta.security.jacc that throw PolicyContextExceptionModifier and TypeMethodDescriptionvoidPolicyConfiguration.addToExcludedPolicy(Permission permission) Used to add a single excluded policy statement to this PolicyConfiguration.default voidPolicyConfiguration.addToExcludedPolicy(PermissionCollection permissions) Used to add excluded policy statements to this PolicyConfiguration.voidPolicyConfiguration.addToRole(String roleName, Permission permission) Used to add a single permission to a named role in this PolicyConfiguration.default voidPolicyConfiguration.addToRole(String roleName, PermissionCollection permissions) Used to add permissions to a named role in this PolicyConfiguration.voidPolicyConfiguration.addToUncheckedPolicy(Permission permission) Used to add a single unchecked policy statement to this PolicyConfiguration.default voidPolicyConfiguration.addToUncheckedPolicy(PermissionCollection permissions) Used to add unchecked policy statements to this PolicyConfiguration.default voidPolicyConfiguration.commit()This method is used to set to "inService" the state of the policy context whose interface is this PolicyConfiguration Object.voidPolicyConfiguration.delete()Causes all policy statements to be deleted from this PolicyConfiguration and sets its internal state such that calling any method, other than delete, getContextID, or inService on the PolicyConfiguration will be rejected and cause an UnsupportedOperationException to be thrown.static <T> TPolicyContext.getContext(String key) This method may be used by aPolicyprovider to activate thePolicyContextHandlerregistered to the context object key and cause it to return the corresponding policy context object from the container.PolicyContextHandler.getContext(String key, Object data) This public method is used by thePolicyContextclass to activate the handler and obtain from it the context object identified by the (case-sensitive) key.PolicyConfiguration.getContextID()This method returns this object's policy context identifier.String[]PolicyContextHandler.getKeys()This public method returns the keys identifying the context objects supported by the handler.abstract PolicyConfigurationPolicyConfigurationFactory.getPolicyConfiguration(String contextID, boolean remove) This method is used to obtain an instance of the provider specific class that implements the PolicyConfiguration interface that corresponds to the identified policy context within the provider.static PolicyConfigurationFactoryPolicyConfigurationFactory.getPolicyConfigurationFactory()This static method uses a system property to find and instantiate (via a public constructor) a provider specific factory implementation class.default booleanPolicyConfiguration.inService()This method is used to determine if the policy context whose interface is this PolicyConfiguration Object is in the "inService" state.abstract booleanThis method determines if the identified policy context exists with state "inService" in the Policy provider associated with the factory.voidPolicyConfiguration.linkConfiguration(PolicyConfiguration link) Creates a relationship between this configuration and another such that they share the same principal-to-role mappings.static voidPolicyContext.registerHandler(String key, PolicyContextHandler handler, boolean replace) Method used to register a container specificPolicyContexthandler.voidPolicyConfiguration.removeExcludedPolicy()Used to remove any excluded policy statements from this PolicyConfiguration.voidPolicyConfiguration.removeRole(String roleName) Used to remove a role and all its permissions from this PolicyConfiguration.voidPolicyConfiguration.removeUncheckedPolicy()Used to remove any unchecked policy statements from this PolicyConfiguration.booleanThis public method returns a boolean result indicating whether or not the handler supports the context object identified by the (case-sensitive) key value.