geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/deploy DefaultPrincipal.java Principal.java Realm.java Role.java Security.java
Date Sun, 30 May 2004 18:37:27 GMT
adc         2004/05/30 11:37:27

  Added:       modules/security/src/java/org/apache/geronimo/security/deploy
                        DefaultPrincipal.java Principal.java Realm.java
                        Role.java Security.java
  Log:
  Serializable POJOs for deployment.
  
  Revision  Changes    Path
  1.1                  incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/deploy/DefaultPrincipal.java
  
  Index: DefaultPrincipal.java
  ===================================================================
  /**
   *
   * 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;
  
  
  /**
   * @version $Revision: 1.1 $ $Date: 2004/05/30 18:37:27 $
   */
  public class DefaultPrincipal implements Serializable {
      private String realmName;
      private Principal principal;
  
      public String getRealmName() {
          return realmName;
      }
  
      public void setRealmName(String realmName) {
          this.realmName = realmName;
      }
  
      public Principal getPrincipal() {
          return principal;
      }
  
      public void setPrincipal(Principal principal) {
          this.principal = principal;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/deploy/Principal.java
  
  Index: Principal.java
  ===================================================================
  /**
   *
   * 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;
  
  
  /**
   * @version $Revision: 1.1 $ $Date: 2004/05/30 18:37:27 $
   */
  public class Principal implements Serializable {
      private String className;
      private String principalName;
  
      public String getClassName() {
          return className;
      }
  
      public void setClassName(String className) {
          this.className = className;
      }
  
      public String getPrincipalName() {
          return principalName;
      }
  
      public void setPrincipalName(String principalName) {
          this.principalName = principalName;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/deploy/Realm.java
  
  Index: Realm.java
  ===================================================================
  /**
   *
   * 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.1 $ $Date: 2004/05/30 18:37:27 $
   */
  public class Realm implements Serializable {
  
      private String realmName;
      private Set principals = new HashSet();
  
      public String getRealmName() {
          return realmName;
      }
  
      public void setRealmName(String realmName) {
          this.realmName = realmName;
      }
  
      public Set getPrincipals() {
          return principals;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/deploy/Role.java
  
  Index: Role.java
  ===================================================================
  /**
   *
   * 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.1 $ $Date: 2004/05/30 18:37:27 $
   */
  public class Role implements Serializable {
  
      private String roleName;
      private Set realms = new HashSet();
  
      public String getRoleName() {
          return roleName;
      }
  
      public void setRoleName(String roleName) {
          this.roleName = roleName;
      }
  
      public Set getRealms() {
          return realms;
      }
  }
  
  
  
  1.1                  incubator-geronimo/modules/security/src/java/org/apache/geronimo/security/deploy/Security.java
  
  Index: Security.java
  ===================================================================
  /**
   *
   * 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.1 $ $Date: 2004/05/30 18:37:27 $
   */
  public class Security implements Serializable {
  
      private boolean useContextHandler;
      private DefaultPrincipal defaultPrincipal;
      private Set rollMappings = new HashSet();
  
      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 getRollMappings() {
          return rollMappings;
      }
  }
  
  
  

Mime
View raw message