ManageNameIDRequestInfo.java revision cc87cf22700a4a41bf0eba0d9579db53e7cedd94
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ManageNameIDRequestInfo.java,v 1.4 2009/11/20 21:41:16 exu Exp $
*
* Portions Copyrighted 2016 ForgeRock AS.
*/
/**
* This class stores information about the request made to
* the Service Provider.
*/
public class ManageNameIDRequestInfo extends CacheObject {
/**
* Constructor creates the ManageNameIDRequest Info for a request.
* @param request the HttpServletRequest
* @param response the HttpServletResponse
* @param mniRequest the Authentication Request Object
* @param relayState the Redirection URL on completion of Request.
* @param paramsMap Map of other parameters sent by the requester.
* @param session session object.
*/
this.mniRequest = mniRequest;
this.relayState = relayState;
time = currentTimeMillis();
}
/**
* Returns the <code>ManageNameIDRequest</code> Object.
*
* @return the <code>ManageNameIDRequest</code> Object.
*/
protected ManageNameIDRequest getManageNameIDRequest() {
return mniRequest;
}
/**
* Returns the Map of parameters in the Request.
*
* @return Map of request parameters.
*/
protected Map getParamsMap() {
return paramsMap;
}
/**
* Returns the <code>RelayState</code> parameter value.
*
* @return the RelayState parameter value.
*/
protected String getRelayState() {
return relayState;
}
/**
* Returns the <code>HttpServletRequest</code> object.
*
* @return the <code>HttpServletRequest</code> object.
*/
protected HttpServletRequest getServletRequest() {
return request;
}
/**
* Returns the <code>HttpServletResponse</code> parameter value.
*
* @return the <code>HttpServletResponse</code> object.
*/
protected HttpServletResponse getServletResponse() {
return response;
}
/**
* Returns the session parameter value.
*
* @return the session object.
*/
protected Object getSession() {
try {
session =
} catch (SessionException se) {
}
}
"Failed to get session from request.");
}
}
}
return session;
}
}
return nameID;
}
}