principal.java

来自「CAS在Tomcat中实现单点登录项目,单点登录(Single Sign On 」· Java 代码 · 共 42 行

JAVA
42
字号
/* * Copyright 2007 The JA-SIG Collaborative. All rights reserved. See license * distributed with this file and available online at * http://www.ja-sig.org/products/cas/overview/license/ */package org.jasig.cas.authentication.principal;import java.io.Serializable;import java.util.Map;/** * Generic concept of an authenticated thing. Examples include a person or a * service. * <p> * The implementation SimplePrincipal just contains the Id property. More * complex Principal objects may contain additional information that are * meaningful to the View layer but are generally transparent to the rest of * CAS. * </p> *  * @author Scott Battaglia * @version $Revision: 1.3 $ $Date: 2007/04/19 20:13:01 $ * @since 3.0 * <p> * This is a published and supported CAS Server 3 API. * </p> */public interface Principal extends Serializable {    /**     * Returns the unique id for the Principal     * @return the unique id for the Principal.     */    String getId();        /**     *      * @return     */    Map<String, Object> getAttributes();}

⌨️ 快捷键说明

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