user.java

来自「JAVA FTP 上传下载 的源文件」· Java 代码 · 共 87 行

JAVA
87
字号
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.  See the NOTICE file * distributed with this work for additional information * regarding copyright ownership.  The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License.  You may obtain a copy of the License at * *  http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, 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.apache.ftpserver.ftplet;import java.util.List;/** * Basic user interface. * * @author The Apache MINA Project (dev@mina.apache.org) * @version $Rev: 711368 $, $Date: 2008-11-04 21:02:43 +0100 (Tue, 04 Nov 2008) $ */public interface User {    /**     * Get the user name.     * @return The user name, the same used for login     */    String getName();    /**     * Get password.     * @return The users password or null if the user manager can not provide the password      */    String getPassword();    /**      * Get all authorities granted to this user     *      * @return All authorities     */    List<Authority> getAuthorities();    /**     * Get authorities of the specified type granted to this user     * @param clazz The type of {@link Authority}     * @return Authorities of the specified class     */    List<Authority> getAuthorities(Class<? extends Authority> clazz);    /**     * Authorize a {@link AuthorizationRequest} for this user     *     * @param request     *            The {@link AuthorizationRequest} to authorize     * @return A populated AuthorizationRequest if the user was authorized, null     *         otherwise.     */    AuthorizationRequest authorize(AuthorizationRequest request);    /**     * Get the maximum idle time in seconds. Zero or less idle time means no     * limit.     * @return The idle time in seconds     */    int getMaxIdleTime();    /**     * Get the user enable status.     * @return true if the user is enabled     */    boolean getEnabled();    /**     * gGet the user home directory     * @return The path to the home directory for the user     */    String getHomeDirectory();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?