|
1 | 1 | /*
|
2 |
| - * Copyright 2004, 2005, 2006 Acegi Technology Pty Limited |
| 2 | + * Copyright 2002-2020 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
6 | 6 | * You may obtain a copy of the License at
|
7 | 7 | *
|
8 |
| - * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + * https://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 | *
|
10 | 10 | * Unless required by applicable law or agreed to in writing, software
|
11 | 11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
|
16 | 16 |
|
17 | 17 | package org.springframework.security.web.session;
|
18 | 18 |
|
19 |
| -import javax.servlet.http.HttpSession; |
20 |
| - |
21 | 19 | import org.springframework.security.core.session.SessionIdChangedEvent;
|
22 | 20 |
|
| 21 | +import javax.servlet.http.HttpSession; |
| 22 | + |
23 | 23 | /**
|
24 |
| - * Published by the {@link HttpSessionEventPublisher} when an {@code HttpSession} id |
25 |
| - * is changed |
| 24 | + * Published by the {@link HttpSessionEventPublisher} when an {@link HttpSession} ID |
| 25 | + * is changed. |
26 | 26 | *
|
| 27 | + * @since 5.4 |
27 | 28 | */
|
28 | 29 | public class HttpSessionIdChangedEvent extends SessionIdChangedEvent {
|
29 | 30 | private final String oldSessionId;
|
30 |
| - private final String newSessionid; |
31 |
| - // ~ Constructors |
32 |
| - // =================================================================================================== |
| 31 | + private final String newSessionId; |
33 | 32 |
|
34 | 33 | public HttpSessionIdChangedEvent(HttpSession session, String oldSessionId) {
|
35 | 34 | super(session);
|
36 | 35 | this.oldSessionId = oldSessionId;
|
37 |
| - this.newSessionid = session.getId(); |
| 36 | + this.newSessionId = session.getId(); |
38 | 37 | }
|
39 | 38 |
|
| 39 | + @Override |
40 | 40 | public String getOldSessionId() {
|
41 | 41 | return oldSessionId;
|
42 | 42 | }
|
43 | 43 |
|
44 | 44 | @Override
|
45 | 45 | public String getNewSessionId() {
|
46 |
| - return newSessionid; |
| 46 | + return newSessionId; |
47 | 47 | }
|
48 | 48 | }
|
0 commit comments