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: RoleCheckErrorException.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 RoleCheckErrorException extends SessionValidatorException {
13: private static final long serialVersionUID = -849240411412778497L;
14:
15: private String mAuthId = null;
16: private String mHostIp = null;
17: private String mRole = null;
18:
19: public RoleCheckErrorException(String authId, String hostIp,
20: String role) {
21: this (authId, hostIp, role, null);
22: }
23:
24: public RoleCheckErrorException(String authId, String hostIp,
25: String role, Throwable cause) {
26: super ("Unable to check the role '" + role
27: + "' for the session with authid '" + authId
28: + "' and hostip '" + hostIp + "'.", cause);
29: mAuthId = authId;
30: mHostIp = hostIp;
31: mRole = role;
32: }
33:
34: public String getAuthId() {
35: return mAuthId;
36: }
37:
38: public String getHostIp() {
39: return mHostIp;
40: }
41:
42: public String getRole() {
43: return mRole;
44: }
45: }
|