Java Code Examples for org.keycloak.adapters.spi.HttpFacade#Cookie

The following examples show how to use org.keycloak.adapters.spi.HttpFacade#Cookie . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JaxrsHttpFacade.java    From hammock with Apache License 2.0 5 votes vote down vote up
@Override
public HttpFacade.Cookie getCookie(String cookieName) {
    Map<String, javax.ws.rs.core.Cookie> cookies = requestContext.getCookies();
    if (cookies == null)
        return null;
    javax.ws.rs.core.Cookie cookie = cookies.get(cookieName);
    if (cookie == null)
        return null;
    return new HttpFacade.Cookie(cookie.getName(), cookie.getValue(), cookie.getVersion(), cookie.getDomain(), cookie.getPath());
}
 
Example 2
Source File: MockHttpFacade.java    From keycloak with Apache License 2.0 4 votes vote down vote up
@Override
public HttpFacade.Cookie getCookie(String cookieName) {
   return cookies.get(cookieName);
}
 
Example 3
Source File: MockHttpFacade.java    From keycloak with Apache License 2.0 4 votes vote down vote up
public void setCookies(Map<String, HttpFacade.Cookie> cookies) {
   this.cookies = cookies;
}
 
Example 4
Source File: HierarchicalPathBasedKeycloakConfigResolverTest.java    From keycloak with Apache License 2.0 4 votes vote down vote up
@Override
public HttpFacade.Cookie getCookie(String cookieName) {
    return null;
}
 
Example 5
Source File: PathBasedKeycloakConfigResolverTest.java    From keycloak with Apache License 2.0 4 votes vote down vote up
@Override
public HttpFacade.Cookie getCookie(String cookieName) {
    return null;
}