Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 438 for stub (0.03 sec)

  1. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

              .isEqualTo(returnType);
        }
        return sub;
      }
    
      /**
       * Call this in a {@link TestSubtype} public method asserting that subtype relationship does not
       * hold.
       */
      final <X> @Nullable X notSubtype(@SuppressWarnings("unused") Object sub) {
        Type returnType = method.getGenericReturnType();
        Type paramType = getOnlyParameterType();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. docs_src/security/tutorial004_an.py

            detail="Could not validate credentials",
            headers={"WWW-Authenticate": "Bearer"},
        )
        try:
            payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
            username: str = payload.get("sub")
            if username is None:
                raise credentials_exception
            token_data = TokenData(username=username)
        except InvalidTokenError:
            raise credentials_exception
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/security/oauth2-jwt.md

    同理,JWT 可以用于更复杂的场景。
    
    在这些情况下,多个实体的 ID 可能是相同的,以 ID  `foo` 为例,用户的 ID 是 `foo`,车的 ID 是 `foo`,博客的 ID 也是  `foo`。
    
    为了避免 ID 冲突,在给用户创建 JWT 令牌时,可以为 `sub` 键的值加上前缀,例如 `username:`。因此,在本例中,`sub` 的值可以是:`username:johndoe`。
    
    注意,划重点,`sub` 键在整个应用中应该只有一个唯一的标识符,而且应该是字符串。
    
    ## 检查
    
    运行服务器并访问文档: <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>。
    
    可以看到如下用户界面:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java

                    return true;
                }
    
                id = project.getGroupId() + id;
    
                return id.equals(selector);
            }
    
            // relative path, e.g. "sub", "../sub" or "."
            else if (reactorDirectory != null) {
                File selectedProject =
                        new File(new File(reactorDirectory, selector).toURI().normalize());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. docs_src/security/tutorial005_py310.py

            headers={"WWW-Authenticate": authenticate_value},
        )
        try:
            payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
            username: str = payload.get("sub")
            if username is None:
                raise credentials_exception
            token_scopes = payload.get("scopes", [])
            token_data = TokenData(scopes=token_scopes, username=username)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. internal/deadlineconn/deadlineconn.go

    func (c *DeadlineConn) setReadDeadline() {
    	if c.readDeadline > 0 {
    		now := time.Now()
    		if now.Sub(c.readSetAt) > updateInterval {
    			c.Conn.SetReadDeadline(now.Add(c.readDeadline + updateInterval))
    			c.readSetAt = now
    		}
    	}
    }
    
    func (c *DeadlineConn) setWriteDeadline() {
    	if c.writeDeadline > 0 {
    		now := time.Now()
    		if now.Sub(c.writeSetAt) > updateInterval {
    			c.Conn.SetWriteDeadline(now.Add(c.writeDeadline + updateInterval))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 17:40:11 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/beans/impl/sub/MogeBeanFactory.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.beans.impl.sub;
    
    /**
     * @author koichik
     */
    public class MogeBeanFactory {
    
        /**
         * @param name
         * @return MogeBean
         */
        public static MogeBean create(final String name) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 885 bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/testdata/riscv64.s

    	SRL	X6, X5, X7				// b3d36200
    	SRL	X5, X6					// 33535300
    	SRL	$1, X5, X6				// 13d31200
    	SRL	$1, X5					// 93d21200
    
    	SUB	X6, X5, X7				// b3836240
    	SUB	X5, X6					// 33035340
    	SUB	$-2047, X5, X6				// 1383f27f
    	SUB	$2048, X5, X6				// 13830280
    	SUB	$-2047, X5				// 9382f27f
    	SUB	$2048, X5				// 93820280
    
    	SRA	X6, X5, X7				// b3d36240
    	SRA	X5, X6					// 33535340
    	SRA	$1, X5, X6				// 13d31240
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 25 12:05:29 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/Lifecycle.java

        }
    
        /**
         * A phase in the lifecycle.
         *
         * A phase is identified by its name. It also contains a list of plugins bound to that phase,
         * a list of {@link Link links}, and a list of sub-phases.  This forms a tree of phases.
         */
        interface Phase {
    
            // ======================
            // Maven defined phases
            // ======================
            String BUILD = "build";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Sep 24 07:54:24 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/behind-a-proxy.md

    {* ../../docs_src/behind_a_proxy/tutorial004.py hl[9] *}
    
    and then it won't include it in the OpenAPI schema.
    
    ## Mounting a sub-application
    
    If you need to mount a sub-application (as described in [Sub Applications - Mounts](sub-applications.md){.internal-link target=_blank}) while also using a proxy with `root_path`, you can do it normally, as you would expect.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:49:49 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top