/**
 *
 * Copyright 2004 The Apache Software Foundation
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.apache.geronimo.security.deploy;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;


/**
 * @version $Revision: 1.3 $ $Date: 2004/07/11 21:37:10 $
 */
public class Security implements Serializable {

    private boolean doAsCurrentCaller;
    private boolean useContextHandler;
    private DefaultPrincipal defaultPrincipal;
    private Set roleMappings = new HashSet();

    public boolean isDoAsCurrentCaller() {
        return doAsCurrentCaller;
    }

    public void setDoAsCurrentCaller(boolean doAsCurrentCaller) {
        this.doAsCurrentCaller = doAsCurrentCaller;
    }

    public boolean isUseContextHandler() {
        return useContextHandler;
    }

    public void setUseContextHandler(boolean useContextHandler) {
        this.useContextHandler = useContextHandler;
    }

    public DefaultPrincipal getDefaultPrincipal() {
        return defaultPrincipal;
    }

    public void setDefaultPrincipal(DefaultPrincipal defaultPrincipal) {
        this.defaultPrincipal = defaultPrincipal;
    }

    public Set getRoleMappings() {
        return roleMappings;
    }
}

@@ -773,17 +773,17 @@
 sion: 1.
-3
+4
  $ $Date
@@ -796,19 +796,19 @@
 /07/
-11 21:3
+27 01:5
 7:
-1
 0
+6
  $%0A 
@@ -933,24 +933,56 @@
 extHandler;%0A
+    private String defaultRole;%0A
     private 
@@ -1473,32 +1473,204 @@
 Handler;%0A    %7D%0A%0A
+    public String getDefaultRole() %7B%0A        return defaultRole;%0A    %7D%0A%0A    public void setDefaultRole(String defaultRole) %7B%0A        this.defaultRole = defaultRole;%0A    %7D%0A%0A
     public Defau

Need to provide a default role.