|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| PolicyMetaData.java | - | 50% | 33.3% | 42.9% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Copyright (C) The Spice Group. All rights reserved.
|
|
| 3 |
*
|
|
| 4 |
* This software is published under the terms of the Spice
|
|
| 5 |
* Software License version 1.1, a copy of which has been included
|
|
| 6 |
* with this distribution in the LICENSE.txt file.
|
|
| 7 |
*/
|
|
| 8 |
package org.codehaus.spice.xmlpolicy.metadata;
|
|
| 9 |
|
|
| 10 |
/**
|
|
| 11 |
* This class defines the set of KeyStores and Grants
|
|
| 12 |
* in a policy declaration.
|
|
| 13 |
*
|
|
| 14 |
* @author Peter Donald
|
|
| 15 |
* @version $Revision: 1.1 $ $Date: 2003/12/02 09:16:06 $
|
|
| 16 |
*/
|
|
| 17 |
public class PolicyMetaData |
|
| 18 |
{
|
|
| 19 |
/**
|
|
| 20 |
* The KeyStores associated with policy.
|
|
| 21 |
*/
|
|
| 22 |
private final KeyStoreMetaData[] m_keyStores;
|
|
| 23 |
|
|
| 24 |
/**
|
|
| 25 |
* The grants that make up the policy.
|
|
| 26 |
*/
|
|
| 27 |
private final GrantMetaData[] m_grants;
|
|
| 28 |
|
|
| 29 |
/**
|
|
| 30 |
* Create a policy with specific keystores and grants.
|
|
| 31 |
*
|
|
| 32 |
* @param keyStores the key stores
|
|
| 33 |
* @param grants the grants
|
|
| 34 |
*/
|
|
| 35 | 1 |
public PolicyMetaData( final KeyStoreMetaData[] keyStores,
|
| 36 |
final GrantMetaData[] grants ) |
|
| 37 |
{
|
|
| 38 | 1 |
m_keyStores = keyStores; |
| 39 | 1 |
m_grants = grants; |
| 40 |
} |
|
| 41 |
|
|
| 42 |
/**
|
|
| 43 |
* Return the KeyStores associated with policy.
|
|
| 44 |
*
|
|
| 45 |
* @return the KeyStores associated with policy.
|
|
| 46 |
*/
|
|
| 47 | 0 |
public KeyStoreMetaData[] getKeyStores()
|
| 48 |
{
|
|
| 49 | 0 |
return m_keyStores;
|
| 50 |
} |
|
| 51 |
|
|
| 52 |
/**
|
|
| 53 |
* Return the grants that make up policy.
|
|
| 54 |
*
|
|
| 55 |
* @return the grants that make up policy.
|
|
| 56 |
*/
|
|
| 57 | 0 |
public GrantMetaData[] getGrants()
|
| 58 |
{
|
|
| 59 | 0 |
return m_grants;
|
| 60 |
} |
|
| 61 |
} |
|
| 62 |
|
|
||||||||||