📄 user.java
字号:
/*
* SSL-Explorer
*
* Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
package com.sslexplorer.security;
import java.util.Date;
import java.util.Properties;
import com.sslexplorer.policyframework.Principal;
/**
* @author Lee David Painter
* @version $Revision: 1.15 $
*
* The attributes of a user who has logged into the system.
*/
public interface User extends Principal, Comparable {
// User attributes keys
public static final String USER_ATTR_HOME_DIRECTORY = "homeDirectory";
public static final String USER_ATTR_HOME_DRIVE = "homeDrive";
public static final String USER_ATTR_ENABLED = "sslexplorerUserEnabled";
public static final String USER_DEFAULT_PROPERTY_PROFILE = "defaultPropertyProfile";
/**
* If the user database supports password changing, it may return a date the
* password was last changed. Todays date should be returned if this
* information is not available and the logon controller will assume the
* password does not need changing.
*
* @uml.property name="lastPasswordChange" multiplicity="(0 1)"
*/
public Date getLastPasswordChange();
/**
* The unique name of the user
*
* @return
*
* @uml.property name="principalName" multiplicity="(0 1)"
*/
public String getPrincipalName();
/**
* The users email address
*
* @return
*
* @uml.property name="email" multiplicity="(0 1)"
*/
public String getEmail();
/**
* The users full name.
*
* @return
*
* @uml.property name="fullname" multiplicity="(0 1)"
*/
public String getFullname();
/**
* Determine the users home network place (or <code>null</code> if no home
* is available for this user).
*
* @return
*
* @uml.property name="homeNetworkPlaceUri" multiplicity="(0 1)"
*/
public String getHomeNetworkPlaceUri();
/**
* Get a list of all the roles the user is in
*
* @return roles
*/
public Role[] getRoles();
/**
* Get a single attribute value given its name
*
* @param name
* @param defaultValue
* @return value
*/
public Properties getAttributes();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -