Interface InternalSecurityManager

All Superinterfaces:
org.eclipse.net4j.util.security.AdministrationPredicate, org.eclipse.net4j.util.security.IAuthenticator, org.eclipse.net4j.util.security.IAuthenticator2, org.eclipse.net4j.util.container.IManagedContainerProvider, ISecurityManager, SecurityItemContainer, SecurityItemProvider

public interface InternalSecurityManager extends ISecurityManager, org.eclipse.net4j.util.container.IManagedContainerProvider
Internal security service bound to a repository. It evaluates operations against a realm, coordinates secondary repositories and permission caches, and invokes commit handlers around repository writes.
Author:
Eike Stepper
No Implement
This interface is not intended to be implemented by clients.
No Extend
This interface is not intended to be extended by clients.
  • Method Details

    • setRepository

      void setRepository(InternalRepository repository)
    • getPermissionCacheCreator

      PermissionCache.Creator getPermissionCacheCreator()
      Returns the permission-cache generation creator used by this manager.

      A creator explicitly supplied through setPermissionCacheCreator(PermissionCache.Creator) takes precedence over repository properties. Otherwise, the creator is resolved from the repository properties when a repository is assigned. If no permission-cache type is configured, the built-in default type is used.

      Since:
      4.13
    • setPermissionCacheCreator

      void setPermissionCacheCreator(PermissionCache.Creator creator)
      Sets an explicit permission-cache generation creator while this manager is inactive.

      An explicitly supplied creator takes precedence over creator type and description configured in the repository properties. If no explicit creator is supplied, the manager resolves its creator from the repository properties when a repository is assigned; an omitted cache type selects the built-in default type.

      This method may only be called while the manager is inactive.

      Parameters:
      creator - the creator to use for this manager
      Since:
      4.13
    • getSecondaryRepositories

      InternalRepository[] getSecondaryRepositories()
      Specified by:
      getSecondaryRepositories in interface ISecurityManager
      Since:
      4.6
    • addSecondaryRepository

      void addSecondaryRepository(InternalRepository repository)
      Since:
      4.6
    • addSecondaryRepository

      void addSecondaryRepository(InternalRepository repository, Map<String,Object> authorizationContext)
      Since:
      4.10
    • removeSecondaryRepository

      void removeSecondaryRepository(InternalRepository repository)
      Since:
      4.6
    • getRealmPath

      String getRealmPath()
    • getCommitHandlers

    • getCommitHandlers2

      Since:
      4.3
    • addCommitHandler

      void addCommitHandler(InternalSecurityManager.CommitHandler handler)
    • removeCommitHandler

      void removeCommitHandler(InternalSecurityManager.CommitHandler handler)