public WarningCookieProperties() { super.setName("CASPRIVACY"); } }
@Override protected String buildCompoundCookieValue(final String givenCookieValue, final HttpServletRequest request) { val clientInfo = ClientInfoHolder.getClientInfo(); val builder = new StringBuilder(givenCookieValue); if (cookieProperties.isPinToSession()) { builder.append(COOKIE_FIELD_SEPARATOR).append(clientInfo.getClientIpAddress()); val userAgent = HttpRequestUtils.getHttpServletRequestUserAgent(request); if (StringUtils.isBlank(userAgent)) { throw new IllegalStateException("Request does not specify a user-agent"); } builder.append(COOKIE_FIELD_SEPARATOR).append(userAgent); } else { LOGGER.debug("Cookie session-pinning is disabled"); } return builder.toString(); }
if (!cookieProperties.isPinToSession()) { LOGGER.debug("Cookie session-pinning is disabled. Returning cookie value as it was provided"); return value;
public Pac4jDelegatedSessionCookieProperties() { super.setName("PAC4JDELSESSION"); crypto.getEncryption().setKeySize(CipherExecutor.DEFAULT_STRINGABLE_ENCRYPTION_KEY_SIZE); crypto.getSigning().setKeySize(CipherExecutor.DEFAULT_STRINGABLE_SIGNING_KEY_SIZE); } }
public WsFederationDelegatedCookieProperties() { super.setName("WSFEDDELSESSION"); crypto.getEncryption().setKeySize(CipherExecutor.DEFAULT_STRINGABLE_ENCRYPTION_KEY_SIZE); crypto.getSigning().setKeySize(CipherExecutor.DEFAULT_STRINGABLE_SIGNING_KEY_SIZE); } }
public TicketGrantingCookieProperties() { super.setName("TGC"); crypto.getEncryption().setKeySize(CipherExecutor.DEFAULT_STRINGABLE_ENCRYPTION_KEY_SIZE); crypto.getSigning().setKeySize(CipherExecutor.DEFAULT_STRINGABLE_SIGNING_KEY_SIZE); } }