⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spnegocredentialstoprincipalresolver.java

📁 CAS在Tomcat中实现单点登录项目,单点登录(Single Sign On , 简称 SSO )是目前比较流行的服务于企业业务整合的解决方案之一
💻 JAVA
字号:
/* * 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.support.spnego.authentication.principal;import org.jasig.cas.authentication.principal.AbstractPersonDirectoryCredentialsToPrincipalResolver;import org.jasig.cas.authentication.principal.Credentials;/** * Implementation of a CredentialToPrincipalResolver that takes a * SpnegoCredentials and returns a SimplePrincipal. *  * @author Arnaud Lesueur * @author Marc-Antoine Garrigue * @version $Revision: 42233 $ $Date: 2007-06-11 11:59:18 -0400 (Mon, 11 Jun * 2007) $ * @since 3.1 */public final class SpnegoCredentialsToPrincipalResolver extends    AbstractPersonDirectoryCredentialsToPrincipalResolver {    protected String extractPrincipalId(final Credentials credentials) {        return ((SpnegoCredentials) credentials).getPrincipal().getId();    }    public boolean supports(final Credentials credentials) {        return credentials != null            && SpnegoCredentials.class.equals(credentials.getClass());    }}

⌨️ 快捷键说明

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