You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/09/20 11:22:38 UTC
cvs commit: jakarta-avalon-excalibur/loader/src/java/org/apache/excalibur/policy/metadata PolicyMetaData.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>