SEC-1590: Removed WebAuthenticatioDetails.doPopulateAdditionalInformation() method which is caled from superclass constructor.
This commit is contained in:
parent
43ec2beec0
commit
54d0a263de
|
@ -24,6 +24,7 @@ import javax.servlet.http.HttpSession;
|
||||||
* A holder of selected HTTP details related to a web authentication request.
|
* A holder of selected HTTP details related to a web authentication request.
|
||||||
*
|
*
|
||||||
* @author Ben Alex
|
* @author Ben Alex
|
||||||
|
* @author Luke Taylor
|
||||||
*/
|
*/
|
||||||
public class WebAuthenticationDetails implements Serializable {
|
public class WebAuthenticationDetails implements Serializable {
|
||||||
//~ Instance fields ================================================================================================
|
//~ Instance fields ================================================================================================
|
||||||
|
@ -44,19 +45,10 @@ public class WebAuthenticationDetails implements Serializable {
|
||||||
|
|
||||||
HttpSession session = request.getSession(false);
|
HttpSession session = request.getSession(false);
|
||||||
this.sessionId = (session != null) ? session.getId() : null;
|
this.sessionId = (session != null) ? session.getId() : null;
|
||||||
|
|
||||||
doPopulateAdditionalInformation(request);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
||||||
|
|
||||||
/**
|
|
||||||
* Provided so that subclasses can populate additional information.
|
|
||||||
*
|
|
||||||
* @param request that the authentication request was received from
|
|
||||||
*/
|
|
||||||
protected void doPopulateAdditionalInformation(HttpServletRequest request) {}
|
|
||||||
|
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (obj instanceof WebAuthenticationDetails) {
|
if (obj instanceof WebAuthenticationDetails) {
|
||||||
WebAuthenticationDetails rhs = (WebAuthenticationDetails) obj;
|
WebAuthenticationDetails rhs = (WebAuthenticationDetails) obj;
|
||||||
|
|
Loading…
Reference in New Issue