logout.jsp revision 7349a98e2da846b02bd1dbcef7db67fe9cd69a1a
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb<%--
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb The contents of this file are subject to the terms
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb of the Common Development and Distribution License
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb (the License). You may not use this file except in
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb compliance with the License.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb You can obtain a copy of the License at
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb https://opensso.dev.java.net/public/CDDLv1.0.html or
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb opensso/legal/CDDLv1.0.txt
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb See the License for the specific language governing
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb permission and limitations under the License.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb When distributing Covered Code, include this CDDL
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb Header Notice in each file and include the License file
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb at opensso/legal/CDDLv1.0.txt.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb If applicable, add the following below the CDDL Header,
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb with the fields enclosed by brackets [] replaced by
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb your own identifying information:
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb "Portions Copyrighted [year] [name of copyright owner]"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb $Id: logout.jsp,v 1.2 2009/06/17 03:07:37 exu Exp $
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb--%><%@ page language="java"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb import="com.sun.identity.saml2.common.SAML2Utils,
b38846b15c8891c6dec44dcc4f96ca40721bf663rbbjava.util.Enumeration"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb%><%
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb /**
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * If header SLOStatus doesn't exist, it's IDP initiated SLO. Log user out.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * Besides "Cookie" header, other SLO related headers are: "IDP", "SP",
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * "NameIDValue", "SessionIndex", "Binding".
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * If header SLOStatus exist, it's fedlet initiated SLO. Do processing
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * according to the SLOStatus. Besides "Cookie" header, other SLO
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * related headers are: "IDP", "SP", "NameIDValue", "SessionIndex",
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * "Binding", "SLOStatus".
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb */
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb if (SAML2Utils.debug.messageEnabled()) {
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb SAML2Utils.debug.message("in fedlet logout.jsp.");
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb }
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb Enumeration headers = request.getHeaderNames();
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb while (headers.hasMoreElements()) {
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb String name = (String) headers.nextElement();
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb if (SAML2Utils.debug.messageEnabled()) {
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb SAML2Utils.debug.message(
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb "header name=" + name + " value=" + request.getHeader(name));
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb }
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb }
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb%>
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb