01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: SessionValidityCheckErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.authentication.sessionvalidators.exceptions;
09:
10: import com.uwyn.rife.authentication.exceptions.SessionValidatorException;
11:
12: public class SessionValidityCheckErrorException extends
13: SessionValidatorException {
14: private static final long serialVersionUID = 4277837804430634653L;
15:
16: private String mAuthId = null;
17: private String mHostIp = null;
18:
19: public SessionValidityCheckErrorException(String authId,
20: String hostIp) {
21: this (authId, hostIp, null);
22: }
23:
24: public SessionValidityCheckErrorException(String authId,
25: String hostIp, Throwable cause) {
26: super (
27: "Unable to check the validity of the session with authid '"
28: + authId + "' for hostip '" + hostIp + "'.",
29: cause);
30: mAuthId = authId;
31: mHostIp = hostIp;
32: }
33:
34: public String getAuthId() {
35: return mAuthId;
36: }
37:
38: public String getHostIp() {
39: return mHostIp;
40: }
41: }
|