Class ElytronPolicyConfiguration

  • All Implemented Interfaces:
    javax.security.jacc.PolicyConfiguration

    class ElytronPolicyConfiguration
    extends Object
    implements javax.security.jacc.PolicyConfiguration
    PolicyConfiguration implementation.
    Author:
    Pedro Igor
    See Also:
    ElytronPolicyConfigurationFactory
    • Constructor Detail

      • ElytronPolicyConfiguration

        ElytronPolicyConfiguration​(String contextID)
    • Method Detail

      • addToExcludedPolicy

        public void addToExcludedPolicy​(Permission permission)
                                 throws javax.security.jacc.PolicyContextException
        Specified by:
        addToExcludedPolicy in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • addToExcludedPolicy

        public void addToExcludedPolicy​(PermissionCollection permissions)
                                 throws javax.security.jacc.PolicyContextException
        Specified by:
        addToExcludedPolicy in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • addToRole

        public void addToRole​(String roleName,
                              Permission permission)
                       throws javax.security.jacc.PolicyContextException
        Specified by:
        addToRole in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • addToRole

        public void addToRole​(String roleName,
                              PermissionCollection permissions)
                       throws javax.security.jacc.PolicyContextException
        Specified by:
        addToRole in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • addToUncheckedPolicy

        public void addToUncheckedPolicy​(Permission permission)
                                  throws javax.security.jacc.PolicyContextException
        Specified by:
        addToUncheckedPolicy in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • addToUncheckedPolicy

        public void addToUncheckedPolicy​(PermissionCollection permissions)
                                  throws javax.security.jacc.PolicyContextException
        Specified by:
        addToUncheckedPolicy in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • commit

        public void commit()
                    throws javax.security.jacc.PolicyContextException
        Specified by:
        commit in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • delete

        public void delete()
                    throws javax.security.jacc.PolicyContextException
        Specified by:
        delete in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • getContextID

        public String getContextID()
                            throws javax.security.jacc.PolicyContextException
        Specified by:
        getContextID in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • inService

        public boolean inService()
        Specified by:
        inService in interface javax.security.jacc.PolicyConfiguration
      • linkConfiguration

        public void linkConfiguration​(javax.security.jacc.PolicyConfiguration link)
                               throws javax.security.jacc.PolicyContextException
        Specified by:
        linkConfiguration in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • removeExcludedPolicy

        public void removeExcludedPolicy()
                                  throws javax.security.jacc.PolicyContextException
        Specified by:
        removeExcludedPolicy in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • removeRole

        public void removeRole​(String roleName)
                        throws javax.security.jacc.PolicyContextException
        Specified by:
        removeRole in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • removeUncheckedPolicy

        public void removeUncheckedPolicy()
                                   throws javax.security.jacc.PolicyContextException
        Specified by:
        removeUncheckedPolicy in interface javax.security.jacc.PolicyConfiguration
        Throws:
        javax.security.jacc.PolicyContextException
      • getLinkedPolicies

        Set<javax.security.jacc.PolicyConfiguration> getLinkedPolicies()
      • getUncheckedPermissions

        Permissions getUncheckedPermissions()
      • getExcludedPermissions

        Permissions getExcludedPermissions()
      • checkIfInOpenState

        private void checkIfInOpenState()
      • isDeleted

        private boolean isDeleted()