Searched refs:httpRequest (Results 1 - 25 of 68) sorted by relevance

123

/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/core/
H A DOAuth2RequestFactory.java66 HttpServletRequest httpRequest = ServletUtils.getRequest(request);
67 OAuth2Request o2request = getOAuth2Request(httpRequest);
70 addClientRegistrationToOAuth2Request(httpRequest, o2request);
71 setOauth2RequestAttributeOnHttpRequest(httpRequest, o2request);
76 private OAuth2Request getOAuth2Request(HttpServletRequest httpRequest) { argument
77 return httpRequest == null ? null : (OAuth2Request) httpRequest.getAttribute(OAUTH2_REQ_ATTR);
80 private void addClientRegistrationToOAuth2Request(HttpServletRequest httpRequest, OAuth2Request o2request) { argument
81 if (httpRequest == null) {
85 String clientId = httpRequest
96 setOauth2RequestAttributeOnHttpRequest(HttpServletRequest httpRequest, OAuth2Request o2request) argument
[all...]
/forgerock/openam-v13/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/authn/core/
H A DLoginConfiguration.java29 private HttpServletRequest httpRequest; field in class:LoginConfiguration
40 * @param httpRequest The HttpServletRequest.
43 public LoginConfiguration httpRequest(HttpServletRequest httpRequest) { argument
44 this.httpRequest = httpRequest;
54 return httpRequest;
110 httpRequest = new RestAuthHttpRequestWrapper(httpRequest);
111 ((RestAuthHttpRequestWrapper) httpRequest)
[all...]
/forgerock/openam/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/authn/core/
H A DLoginConfiguration.java29 private HttpServletRequest httpRequest; field in class:LoginConfiguration
40 * @param httpRequest The HttpServletRequest.
43 public LoginConfiguration httpRequest(HttpServletRequest httpRequest) { argument
44 this.httpRequest = httpRequest;
54 return httpRequest;
110 httpRequest = new RestAuthHttpRequestWrapper(httpRequest);
111 ((RestAuthHttpRequestWrapper) httpRequest)
[all...]
/forgerock/openam-v13/openam-federation/openam-idpdiscovery/src/main/java/com/sun/identity/saml2/idpdiscovery/
H A DConfiguratorFilter.java75 HttpServletRequest httpRequest = (HttpServletRequest) request;
79 if (httpRequest.getRequestURI().endsWith(SETUP_URI)) {
81 filterChain.doFilter(httpRequest, httpResponse);
83 filterChain.doFilter(httpRequest, httpResponse);
85 String url = httpRequest.getScheme() + "://" +
86 httpRequest.getServerName() + ":" +
87 httpRequest.getServerPort() +
88 httpRequest.getContextPath() + SETUP_URI;
92 filterChain.doFilter(httpRequest, httpResponse);
/forgerock/openam-v13/openam-examples/openam-example-clientsdk-war/src/main/java/com/sun/identity/setup/
H A DClientConfiguratorFilter.java75 HttpServletRequest httpRequest = (HttpServletRequest) request;
79 if (httpRequest.getRequestURI().endsWith(SETUP_URI)) {
81 filterChain.doFilter(httpRequest, httpResponse);
83 filterChain.doFilter(httpRequest, httpResponse);
85 String url = httpRequest.getScheme() + "://" +
86 httpRequest.getServerName() + ":" +
87 httpRequest.getServerPort() +
88 httpRequest.getContextPath() + SETUP_URI;
92 filterChain.doFilter(httpRequest, httpResponse);
/forgerock/openam/openam-examples/openam-example-clientsdk-war/src/main/java/com/sun/identity/setup/
H A DClientConfiguratorFilter.java75 HttpServletRequest httpRequest = (HttpServletRequest) request;
79 if (httpRequest.getRequestURI().endsWith(SETUP_URI)) {
81 filterChain.doFilter(httpRequest, httpResponse);
83 filterChain.doFilter(httpRequest, httpResponse);
85 String url = httpRequest.getScheme() + "://" +
86 httpRequest.getServerName() + ":" +
87 httpRequest.getServerPort() +
88 httpRequest.getContextPath() + SETUP_URI;
92 filterChain.doFilter(httpRequest, httpResponse);
/forgerock/openam/openam-federation/openam-idpdiscovery/src/main/java/com/sun/identity/saml2/idpdiscovery/
H A DConfiguratorFilter.java75 HttpServletRequest httpRequest = (HttpServletRequest) request;
79 if (httpRequest.getRequestURI().endsWith(SETUP_URI)) {
81 filterChain.doFilter(httpRequest, httpResponse);
83 filterChain.doFilter(httpRequest, httpResponse);
85 String url = httpRequest.getScheme() + "://" +
86 httpRequest.getServerName() + ":" +
87 httpRequest.getServerPort() +
88 httpRequest.getContextPath() + SETUP_URI;
92 filterChain.doFilter(httpRequest, httpResponse);
/forgerock/openam-v13/openam-console/src/main/java/com/sun/identity/console/version/
H A DVersionViewBean.java81 public static String getCurrentURL(HttpServletRequest httpRequest) { argument
82 return httpRequest.getScheme() + "://" +
83 httpRequest.getServerName() + ":" +
84 httpRequest.getServerPort() +
85 httpRequest.getContextPath();
H A DVersionServlet.java75 HttpServletRequest httpRequest = (HttpServletRequest) requestContext.getRequest();
77 String redirectUrl = VersionViewBean.getCurrentURL(httpRequest) +
88 HttpServletRequest httpRequest = (HttpServletRequest) requestContext.getRequest();
90 String redirectUrl = VersionViewBean.getCurrentURL(httpRequest)
/forgerock/openam/openam-console/src/main/java/com/sun/identity/console/version/
H A DVersionViewBean.java63 public static String getCurrentURL(HttpServletRequest httpRequest) { argument
64 return httpRequest.getScheme() + "://" +
65 httpRequest.getServerName() + ":" +
66 httpRequest.getServerPort() +
67 httpRequest.getContextPath();
H A DVersionServlet.java75 HttpServletRequest httpRequest = (HttpServletRequest) requestContext.getRequest();
77 String redirectUrl = VersionViewBean.getCurrentURL(httpRequest) +
88 HttpServletRequest httpRequest = (HttpServletRequest) requestContext.getRequest();
90 String redirectUrl = VersionViewBean.getCurrentURL(httpRequest)
/forgerock/openam-v13/openam-core-rest/src/test/java/org/forgerock/openam/core/rest/authn/http/
H A DAuthenticationServiceV1Test.java56 Request httpRequest = new Request();
57 httpRequest.setEntity("<xml></xml>");
58 httpRequest.getHeaders().put(ContentTypeHeader.NAME, "application/xml");
61 Response response = authServiceV1.authenticate(context, httpRequest);
71 Request httpRequest = new Request();
80 Response response = authServiceV1.handleErrorResponse(httpRequest, Status.valueOf(exception.getStatusCode()), exception);
93 Request httpRequest = new Request();
98 Response response = authServiceV1.handleErrorResponse(httpRequest, Status.valueOf(401), exception);
110 Request httpRequest = new Request();
112 httpRequest
[all...]
H A DAuthenticationServiceV2Test.java55 Request httpRequest = new Request();
56 httpRequest.setEntity("<xml></xml>");
57 httpRequest.getHeaders().put(ContentTypeHeader.NAME, "application/xml");
60 Response response = authServiceV2.authenticate(context, httpRequest);
73 Request httpRequest = new Request();
82 Response response = authServiceV2.handleErrorResponse(httpRequest, Status.valueOf(exception.getStatusCode()), exception);
96 Request httpRequest = new Request();
101 Response response = authServiceV2.handleErrorResponse(httpRequest, Status.valueOf(401), testException);
/forgerock/openam/openam-core-rest/src/test/java/org/forgerock/openam/core/rest/authn/http/
H A DAuthenticationServiceV1Test.java56 Request httpRequest = new Request();
57 httpRequest.setEntity("<xml></xml>");
58 httpRequest.getHeaders().put(ContentTypeHeader.NAME, "application/xml");
61 Response response = authServiceV1.authenticate(context, httpRequest);
71 Request httpRequest = new Request();
80 Response response = authServiceV1.handleErrorResponse(httpRequest, Status.valueOf(exception.getStatusCode()), exception);
93 Request httpRequest = new Request();
98 Response response = authServiceV1.handleErrorResponse(httpRequest, Status.valueOf(401), exception);
110 Request httpRequest = new Request();
112 httpRequest
[all...]
H A DAuthenticationServiceV2Test.java55 Request httpRequest = new Request();
56 httpRequest.setEntity("<xml></xml>");
57 httpRequest.getHeaders().put(ContentTypeHeader.NAME, "application/xml");
60 Response response = authServiceV2.authenticate(context, httpRequest);
73 Request httpRequest = new Request();
82 Response response = authServiceV2.handleErrorResponse(httpRequest, Status.valueOf(exception.getStatusCode()), exception);
96 Request httpRequest = new Request();
101 Response response = authServiceV2.handleErrorResponse(httpRequest, Status.valueOf(401), testException);
/forgerock/openam/openam-restlet/src/test/java/org/forgerock/openam/rest/service/
H A DRestletRealmRouterTest.java115 HttpServletRequest httpRequest = mock(HttpServletRequest.class);
116 Request request = setUpRequest(httpRequest);
144 verify(httpRequest).setAttribute("realm", "/realm");
145 verify(httpRequest).setAttribute("realmObject", Realm.of("/realm"));
154 HttpServletRequest httpRequest = mock(HttpServletRequest.class);
155 Request request = setUpRequest(httpRequest);
176 verify(httpRequest).setAttribute("realm", "/realm");
177 verify(httpRequest).setAttribute("realmObject", Realm.of("/realm"));
180 private Request setUpRequest(HttpServletRequest httpRequest) { argument
186 given(serverCall.getRequest()).willReturn(httpRequest);
[all...]
/forgerock/openam-v13/openam-federation/openam-federation-library/src/main/java/com/sun/identity/liberty/ws/interaction/
H A DWSPRedirectHandlerServlet.java144 public void doGet(HttpServletRequest httpRequest, argument
147 handleRequest(httpRequest, httpResponse);
148 //testXSL(httpRequest, httpResponse);
151 public void doPost(HttpServletRequest httpRequest, argument
154 handleRequest(httpRequest, httpResponse);
157 private void handleRequest(HttpServletRequest httpRequest, argument
166 String queryString = httpRequest.getQueryString();
197 sendErrorPageUntrustedHost(httpRequest, httpResponse,
221 forwardRequest(forwardToUrl, httpRequest, httpResponse);
233 String requestURL = getRequestURL(httpRequest);
361 sendInteractionRequestPage(String messageID, HttpServletRequest httpRequest, HttpServletResponse httpResponse) argument
503 sendInteractionResponsePage(String messageID, HttpServletRequest httpRequest, HttpServletResponse httpResponse, String returnToURL) argument
600 getRequestURL(HttpServletRequest httpRequest) argument
605 showErrorPage(HttpServletRequest httpRequest, HttpServletResponse httpResponse, String message) argument
677 isWMLClient(HttpServletRequest httpRequest) argument
[all...]
/forgerock/openam/openam-federation/openam-federation-library/src/main/java/com/sun/identity/liberty/ws/interaction/
H A DWSPRedirectHandlerServlet.java144 public void doGet(HttpServletRequest httpRequest, argument
147 handleRequest(httpRequest, httpResponse);
148 //testXSL(httpRequest, httpResponse);
151 public void doPost(HttpServletRequest httpRequest, argument
154 handleRequest(httpRequest, httpResponse);
157 private void handleRequest(HttpServletRequest httpRequest, argument
166 String queryString = httpRequest.getQueryString();
197 sendErrorPageUntrustedHost(httpRequest, httpResponse,
221 forwardRequest(forwardToUrl, httpRequest, httpResponse);
233 String requestURL = getRequestURL(httpRequest);
361 sendInteractionRequestPage(String messageID, HttpServletRequest httpRequest, HttpServletResponse httpResponse) argument
503 sendInteractionResponsePage(String messageID, HttpServletRequest httpRequest, HttpServletResponse httpResponse, String returnToURL) argument
600 getRequestURL(HttpServletRequest httpRequest) argument
605 showErrorPage(HttpServletRequest httpRequest, HttpServletResponse httpResponse, String message) argument
677 isWMLClient(HttpServletRequest httpRequest) argument
[all...]
/forgerock/openam-v13/openam-federation/openam-federation-library/src/main/java/com/sun/identity/federation/login/
H A DFSPreLogin.java87 * @param httpRequest the HttpServletRequest object.
90 private String removeMetaGotoOrg(HttpServletRequest httpRequest) { argument
91 Enumeration paramEnum = httpRequest.getParameterNames();
104 httpRequest.getParameter(paramKey);
159 * @param httpRequest the HttpServletRequest object.
163 HttpServletRequest httpRequest)
166 String lrURL = httpRequest.getParameter(IFSConstants.GOTOKEY);
167 String reqQueryString = removeMetaGotoOrg(httpRequest);
226 * @param httpRequest the HttpServletRequest object.
230 HttpServletRequest httpRequest)
162 getQueryString(boolean showFederatePage, String metaAlias, HttpServletRequest httpRequest) argument
229 setMetaInfo(String metaAlias, HttpServletRequest httpRequest) argument
411 setHeaderMap(HttpServletRequest httpRequest) argument
439 createSSOMap(String authLevel, String metaAlias, boolean isFedCookiePresent, HttpServletRequest httpRequest, HttpServletResponse httpResponse) argument
[all...]
/forgerock/openam/openam-federation/openam-federation-library/src/main/java/com/sun/identity/federation/login/
H A DFSPreLogin.java87 * @param httpRequest the HttpServletRequest object.
90 private String removeMetaGotoOrg(HttpServletRequest httpRequest) { argument
91 Enumeration paramEnum = httpRequest.getParameterNames();
104 httpRequest.getParameter(paramKey);
159 * @param httpRequest the HttpServletRequest object.
163 HttpServletRequest httpRequest)
166 String lrURL = httpRequest.getParameter(IFSConstants.GOTOKEY);
167 String reqQueryString = removeMetaGotoOrg(httpRequest);
226 * @param httpRequest the HttpServletRequest object.
230 HttpServletRequest httpRequest)
162 getQueryString(boolean showFederatePage, String metaAlias, HttpServletRequest httpRequest) argument
229 setMetaInfo(String metaAlias, HttpServletRequest httpRequest) argument
411 setHeaderMap(HttpServletRequest httpRequest) argument
439 createSSOMap(String authLevel, String metaAlias, boolean isFedCookiePresent, HttpServletRequest httpRequest, HttpServletResponse httpResponse) argument
[all...]
/forgerock/openam-v13/openam-restlet/src/test/java/org/forgerock/openam/rest/service/
H A DRestletRealmRouterTest.java114 HttpServletRequest httpRequest = mock(HttpServletRequest.class);
115 Request request = setUpRequest(httpRequest, adminToken);
150 verify(httpRequest).setAttribute("realm", "/REALM");
160 HttpServletRequest httpRequest = mock(HttpServletRequest.class);
161 Request request = setUpRequest(httpRequest, adminToken);
182 verify(httpRequest).setAttribute("realm", "/REALM");
185 private Request setUpRequest(HttpServletRequest httpRequest, SSOToken adminToken) { argument
191 given(serverCall.getRequest()).willReturn(httpRequest);
/forgerock/openam-v13/openam-federation/openam-federation-library/src/main/java/com/sun/identity/saml2/profile/
H A DAuthnRequestInfoCopy.java60 public AuthnRequestInfo getAuthnRequestInfo(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws SAML2Exception { argument
62 return new AuthnRequestInfo(httpRequest, httpResponse, realm, spEntityID, idpEntityID,
/forgerock/openam/openam-federation/openam-federation-library/src/main/java/com/sun/identity/saml2/profile/
H A DAuthnRequestInfoCopy.java60 public AuthnRequestInfo getAuthnRequestInfo(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws SAML2Exception { argument
62 return new AuthnRequestInfo(httpRequest, httpResponse, realm, spEntityID, idpEntityID,
/forgerock/openam/openam-core-rest/src/main/java/org/forgerock/openam/core/rest/authn/http/
H A DAuthenticationServiceV1.java107 * @param httpRequest The HTTP request.
114 public Response authenticate(@Contextual Context context, @Contextual Request httpRequest) { argument
116 if (!isSupportedMediaType(httpRequest)) {
118 DEBUG.error("AuthenticationService :: Unable to handle media type request : " + ContentTypeHeader.valueOf(httpRequest).getType());
120 return handleErrorResponse(httpRequest, Status.UNSUPPORTED_MEDIA_TYPE, null);
125 Form urlQueryString = getUrlQueryString(httpRequest);
137 jsonContent = getJsonContent(httpRequest);
140 return handleErrorResponse(httpRequest, Status.BAD_REQUEST, e);
161 return handleErrorResponse(httpRequest, Status.valueOf(e.getStatusCode()), e);
164 return handleErrorResponse(httpRequest, Statu
[all...]
/forgerock/openam-v13/openam-restlet/src/main/java/org/forgerock/openam/rest/service/
H A DResourceApiVersionRestlet.java53 HttpServletRequest httpRequest = ServletUtils.getRequest(request);
54 String versionHeader = httpRequest.getHeader(AcceptApiVersionHeader.NAME);

Completed in 2501 milliseconds

123