All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.security.sso.OpenSSOUtil Maven / Gradle / Ivy

/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library 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 Lesser General Public License for more
 * details.
 */

package com.liferay.portal.security.sso;

import com.liferay.portal.kernel.security.sso.OpenSSO;
import com.liferay.portal.kernel.util.ServiceProxyFactory;

import java.io.IOException;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 * 

* See https://issues.liferay.com/browse/LEP-5943. *

* * @author Prashant Dighe * @author Brian Wing Shun Chan * @author Wesley Gong */ public class OpenSSOUtil { public static Map getAttributes( HttpServletRequest httpServletRequest, String serviceUrl) { return _openSSO.getAttributes(httpServletRequest, serviceUrl); } public static String getSubjectId( HttpServletRequest httpServletRequest, String serviceUrl) { return _openSSO.getSubjectId(httpServletRequest, serviceUrl); } public static boolean isAuthenticated( HttpServletRequest httpServletRequest, String serviceUrl) throws IOException { return _openSSO.isAuthenticated(httpServletRequest, serviceUrl); } public static boolean isValidServiceUrl(String serviceUrl) { return _openSSO.isValidServiceUrl(serviceUrl); } public static boolean isValidUrl(String url) { return _openSSO.isValidUrl(url); } public static boolean isValidUrls(String[] urls) { return _openSSO.isValidUrls(urls); } private OpenSSOUtil() { } private static volatile OpenSSO _openSSO = ServiceProxyFactory.newServiceTrackedInstance( OpenSSO.class, OpenSSOUtil.class, "_openSSO", false, true); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy