All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sirius.web.security.ScopeDetector Maven / Gradle / Ivy

There is a newer version: 22.2.3
Show newest version
/*
 * Made with all the love in the world
 * by scireum in Remshalden, Germany
 *
 * Copyright by scireum GmbH
 * http://www.scireum.de - [email protected]
 */

package sirius.web.security;

import sirius.web.http.WebContext;

import javax.annotation.Nonnull;

/**
 * Detects the current {@link sirius.web.security.ScopeInfo} for a given request.
 * 

* Used by {@link sirius.web.security.UserContext} to determine the scope, this request belongs to. * * @see sirius.web.security.ScopeInfo */ public interface ScopeDetector { /** * Detects the scope for the given request. * * @param request the request to detect the scope from * @return the scope this request belongs to. Use {@link sirius.web.security.ScopeInfo#DEFAULT_SCOPE} if no * specific scope can be detected. */ @Nonnull ScopeInfo detectScope(@Nonnull WebContext request); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy