KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > security > DefaultClientRestriction


1 /*
2  * SSL-Explorer
3  *
4  * Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */

19             
20 package com.sslexplorer.security;
21
22
23 public class DefaultClientRestriction implements ClientRestriction {
24
25   private String JavaDoc osName;
26   private String JavaDoc propertyName;
27   private boolean allow;
28   private String JavaDoc exceptions;
29   
30   public DefaultClientRestriction(String JavaDoc osName, String JavaDoc propertyName, boolean allow, String JavaDoc exceptions) {
31     super();
32     this.osName = osName;
33     this.propertyName = propertyName;
34     this.allow = allow;
35     this.exceptions = exceptions;
36   }
37
38   public boolean getAllow() {
39     return allow;
40   }
41   
42   public void setAllow(boolean allow) {
43     this.allow = allow;
44   }
45   
46   public String JavaDoc getExceptions() {
47     return exceptions;
48   }
49   
50   public void setExceptions(String JavaDoc exceptions) {
51     this.exceptions = exceptions;
52   }
53   public String JavaDoc getOsName() {
54     return osName;
55   }
56   
57   public void setOsName(String JavaDoc osName) {
58     this.osName = osName;
59   }
60   
61   public String JavaDoc getPropertyName() {
62     return propertyName;
63   }
64   
65   public void setPropertyName(String JavaDoc propertyName) {
66     this.propertyName = propertyName;
67   }
68 }
69
Popular Tags