registeredservice.java
来自「CAS在Tomcat中实现单点登录项目,单点登录(Single Sign On 」· Java 代码 · 共 99 行
JAVA
99 行
/* * Copyright 2007 The JA-SIG Collaborative. All rights reserved. See license * distributed with this file and available online at * http://www.uportal.org/license.html */package org.jasig.cas.services;import java.io.Serializable;import org.jasig.cas.authentication.principal.Service;/** * Interface for a service that can be registered by the Services Management * interface. * * @author Scott Battaglia * @version $Revision: 42442 $ $Date: 2007-09-14 11:28:32 -0400 (Fri, 14 Sep 2007) $ * @since 3.1 */public interface RegisteredService extends Cloneable, Serializable { /** * Is this application currently allowed to use CAS? * * @return true if it can use CAS, false otherwise. */ boolean isEnabled(); /** * Determines whether the service is allowed anonymous or priveleged access * to user information. Anonymous access should not return any identifying * information such as user id. */ boolean isAnonymousAccess(); /** * Returns the list of allowed attributes. * * @return the list of attributes */ String[] getAllowedAttributes(); /** * Is this application allowed to take part in the proxying capabilities of * CAS? * * @return true if it can, false otherwise. */ boolean isAllowedToProxy(); /** * The unique identifier for this service. * * @return the unique identifier for this service. */ String getServiceId(); long getId(); /** * Returns the name of the service. * * @return the name of the service. */ String getName(); /** * Returns a short theme name. Services do not need to have unique theme * names. * * @return the theme name associated with this service. */ String getTheme(); /** * Does this application participate in the SSO session? * * @return true if it does, false otherwise. */ boolean isSsoEnabled(); /** * Returns the description of the service. * * @return the description of the service. */ String getDescription(); /** * Returns whether the service matches the registered service. * * @param service the service to match. * @return true if they match, false otherwise. */ boolean matches(final Service service); Object clone() throws CloneNotSupportedException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?