avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/loader/src/java/org/apache/excalibur/policy/metadata PolicyMetaData.java
Date Fri, 20 Sep 2002 09:22:38 GMT
donaldp     2002/09/20 02:22:38

  Added:       loader/src/java/org/apache/excalibur/policy/metadata
                        PolicyMetaData.java
  Log:
  Add PolicyMetaData
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-excalibur/loader/src/java/org/apache/excalibur/policy/metadata/PolicyMetaData.java
  
  Index: PolicyMetaData.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.excalibur.policy.metadata;
  
  /**
   * This class defines the set of KeyStores and Grants
   * in a policy declaration.
   *
   * @author <a href="mailto:peter at apache.org">Peter Donald</a>
   * @version $Revision: 1.1 $ $Date: 2002/09/20 09:22:38 $
   */
  public class PolicyMetaData
  {
      /**
       * The KeyStores associated with policy.
       */
      private final KeyStoreMetaData[] m_keyStores;
  
      /**
       * The grants that make up the policy.
       */
      private final GrantMetaData[] m_grants;
  
      /**
       * Create a policy with specific keystores and grants.
       *
       * @param keyStores the key stores
       * @param grants the grants
       */
      public PolicyMetaData( final KeyStoreMetaData[] keyStores,
                             final GrantMetaData[] grants )
      {
          m_keyStores = keyStores;
          m_grants = grants;
      }
  
      /**
       * Return the KeyStores associated with policy.
       *
       * @return the KeyStores associated with policy.
       */
      public KeyStoreMetaData[] getKeyStores()
      {
          return m_keyStores;
      }
  
      /**
       * Return the grants that make up policy.
       *
       * @return the grants that make up policy.
       */
      public GrantMetaData[] getGrants()
      {
          return m_grants;
      }
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message