Class ElytronHttpExchange
java.lang.Object
org.wildfly.elytron.web.undertow.server.ElytronHttpExchange
- All Implemented Interfaces:
org.wildfly.security.http.HttpExchangeSpi,org.wildfly.security.http.HttpServerScopes
public class ElytronHttpExchange
extends Object
implements org.wildfly.security.http.HttpExchangeSpi
Implementation of
HttpExchangeSpi to wrap access to the Undertow specific HttpServerExchange.- Author:
- Darran Lofthouse
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedElytronHttpExchange(io.undertow.server.HttpServerExchange httpServerExchange) protectedElytronHttpExchange(io.undertow.server.HttpServerExchange httpServerExchange, Map<org.wildfly.security.http.Scope, Function<io.undertow.server.HttpServerExchange, org.wildfly.security.http.HttpScope>> scopeResolvers, ScopeSessionListener scopeSessionListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResponseHeader(String headerName, String headerValue) voidauthenticationComplete(org.wildfly.security.auth.server.SecurityIdentity securityIdentity, String mechanismName) voidauthenticationFailed(String message, String mechanismName) voidbadRequest(org.wildfly.security.http.HttpAuthenticationException error, String mechanismName) List<org.wildfly.security.http.HttpServerCookie> getPeerCertificates(boolean renegotiate) getRequestHeaderValues(String headerName) org.wildfly.security.http.HttpScopegetScope(org.wildfly.security.http.Scope scope) org.wildfly.security.http.HttpScopegetScopeIds(org.wildfly.security.http.Scope scope) protected io.undertow.server.session.SessionConfigSub-types may override this method to define howSessionConfigis obtained.protected io.undertow.server.session.SessionManagerSub-types may override this method to define howSessionManageris obtained.voidsetResponseCookie(org.wildfly.security.http.HttpServerCookie cookie) voidsetStatusCode(int statusCode) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.http.HttpExchangeSpi
forward, getFirstRequestHeaderValue, getFirstRequestParameterValue, getRequestParameterNames, getRequestParameterValues, resumeRequest, setRequestInputStreamSupplier, suspendRequest
-
Field Details
-
requestParameters
-
-
Constructor Details
-
ElytronHttpExchange
protected ElytronHttpExchange(io.undertow.server.HttpServerExchange httpServerExchange, Map<org.wildfly.security.http.Scope, Function<io.undertow.server.HttpServerExchange, org.wildfly.security.http.HttpScope>> scopeResolvers, ScopeSessionListener scopeSessionListener) -
ElytronHttpExchange
protected ElytronHttpExchange(io.undertow.server.HttpServerExchange httpServerExchange)
-
-
Method Details
-
getRequestHeaderValues
- Specified by:
getRequestHeaderValuesin interfaceorg.wildfly.security.http.HttpExchangeSpi- See Also:
-
addResponseHeader
- Specified by:
addResponseHeaderin interfaceorg.wildfly.security.http.HttpExchangeSpi- See Also:
-
getSSLSession
- Specified by:
getSSLSessionin interfaceorg.wildfly.security.http.HttpExchangeSpi- See Also:
-
getPeerCertificates
- Specified by:
getPeerCertificatesin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
authenticationComplete
public void authenticationComplete(org.wildfly.security.auth.server.SecurityIdentity securityIdentity, String mechanismName) - Specified by:
authenticationCompletein interfaceorg.wildfly.security.http.HttpExchangeSpi- See Also:
-
authenticationFailed
- Specified by:
authenticationFailedin interfaceorg.wildfly.security.http.HttpExchangeSpi- See Also:
-
badRequest
public void badRequest(org.wildfly.security.http.HttpAuthenticationException error, String mechanismName) - Specified by:
badRequestin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getRequestMethod
- Specified by:
getRequestMethodin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getRequestURI
- Specified by:
getRequestURIin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getRequestPath
- Specified by:
getRequestPathin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getRequestParameters
- Specified by:
getRequestParametersin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getCookies
- Specified by:
getCookiesin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getRequestInputStream
- Specified by:
getRequestInputStreamin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getSourceAddress
- Specified by:
getSourceAddressin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
setResponseCookie
public void setResponseCookie(org.wildfly.security.http.HttpServerCookie cookie) - Specified by:
setResponseCookiein interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getResponseOutputStream
- Specified by:
getResponseOutputStreamin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getScope
public org.wildfly.security.http.HttpScope getScope(org.wildfly.security.http.Scope scope) - Specified by:
getScopein interfaceorg.wildfly.security.http.HttpServerScopes
-
getScopeIds
- Specified by:
getScopeIdsin interfaceorg.wildfly.security.http.HttpServerScopes
-
getScope
public org.wildfly.security.http.HttpScope getScope(org.wildfly.security.http.Scope scope, String id) - Specified by:
getScopein interfaceorg.wildfly.security.http.HttpServerScopes
-
setStatusCode
public void setStatusCode(int statusCode) - Specified by:
setStatusCodein interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getRemoteUser
- Specified by:
getRemoteUserin interfaceorg.wildfly.security.http.HttpExchangeSpi
-
getSessionManager
protected io.undertow.server.session.SessionManager getSessionManager()Sub-types may override this method to define howSessionManageris obtained.- Returns:
- the
SessionManager
-
getSessionConfig
protected io.undertow.server.session.SessionConfig getSessionConfig()Sub-types may override this method to define howSessionConfigis obtained.- Returns:
- the
SessionConfig
-