AuthnRequestInfo.java revision 449854c2a07b50ea64d9d6a8b03d18d4afeeee43
/**
* 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: AuthnRequestInfo.java,v 1.2 2008/06/25 05:47:53 qcheng Exp $
*
*/
/**
* This class stores information about the request made to
* the Service Provider.
*/
public class AuthnRequestInfo extends CacheObject {
/**
* Constructor creates the AuthnRequest Info for a request.
* @param request the HttpServletRequest
* @param response the HttpServletResponse
* @param realm to which the Service Provider belongs.
* @param spEntityID the entityID of Service Provider.
* @param authnReq the Authentication Request Object
* @param relayState the Redirection URL on completion of Request.
* @param paramsMap Map of other parameters sent by the requester.
*/
this.relayState = relayState;
this.spEntityID = spEntityID;
this.idpEntityID = idpEntityID;
}
/**
* Returns the realm.
*
* @return realm to which SP belongs.
*/
return realm;
}
/**
* Returns the Service Provider Entity ID.
*
* @return Service Provider Identifier.
*/
protected String getSPEntityID() {
return spEntityID;
}
/**
* Returns the Identity Provider Entity ID.
*
* @return the Identity Provider Identifier.
*/
protected String getIDPEntityID() {
return idpEntityID;
}
/**
* Returns the <code>AuthnRequest</code> Object.
*
* @return the <code>AuthnRequest</code> Object.
*/
public AuthnRequest getAuthnRequest() {
return authnRequest;
}
/**
* 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;
}
}