Skip to content
Snippets Groups Projects
Select Git revision
  • 193c9ab5f486f6018205af1554325e4c6c7e07cc
  • main default protected
  • demo protected
  • master
  • icon-set-mapping
  • production protected
  • revert-62666d1a
  • favorites-and-recent-files
  • lit2
  • wc-part
  • mark-downloaded-files
  • feature/annotpdf-test
  • fix-zip-upload
  • config-cleanup
  • wip
  • app-shell-update
16 results

dbp-qualified-signature-pdf-upload.js

Blame
  • UserSessionInterface.php 1.52 KiB
    <?php
    
    declare(strict_types=1);
    
    namespace Dbp\Relay\CoreBundle\API;
    
    interface UserSessionInterface
    {
        /**
         * The unique identifier of the authenticated user. Or null in case it is called
         * before the user is known or if the user is a system.
         */
        public function getUserIdentifier(): ?string;
    
        /**
         * Returns an ID represents a "session" of a user which can be used for logging. It should not be possible to
         * figure out which user is behind the ID based on the ID itself and the ID should change regularly.
         * This is useful for connecting various requests together for logging while not exposing details about the user.
         */
        public function getSessionLoggingId(): string;
    
        /**
         * @deprecated
         */
        public function getUserRoles(): array;
    
        /**
         * Returns a unique caching key that can be used to cache metadata related to the current user session like
         * any user metadata, authorization related information etc.
         * It should not be possible to figure out which user is behind the ID based on the ID itself and the ID should
         * change regularly (after a logout/login or a key refresh for example).
         */
        public function getSessionCacheKey(): string;
    
        /**
         * Returns the duration the session is valid (as a whole, not from now) in seconds.
         * After the specified amount of time has passed the logging ID and the caching key should have changed.
         *
         * This is mostly useful for limiting the cache.
         */
        public function getSessionTTL(): int;
    }