You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2004/02/25 19:54:24 UTC
cvs commit: avalon/merlin/composition/spi/src/java/org/apache/avalon/composition/provider SecurityModel.java SystemContext.java
mcconnell 2004/02/25 10:54:24
Modified: merlin/composition/spi/src/java/org/apache/avalon/composition/provider
SystemContext.java
Added: merlin/composition/spi/src/java/org/apache/avalon/composition/provider
SecurityModel.java
Log:
Add a SecurityModel holding the trusted certificates and default permissions and expose this under the SystemContext. The SecurityModel is not complete yet - also need to add operations to get supplimentaty permissions on a per-container basis (derived from targets).
Revision Changes Path
1.3 +4 -4 avalon/merlin/composition/spi/src/java/org/apache/avalon/composition/provider/SystemContext.java
Index: SystemContext.java
===================================================================
RCS file: /home/cvs/avalon/merlin/composition/spi/src/java/org/apache/avalon/composition/provider/SystemContext.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SystemContext.java 14 Feb 2004 21:33:56 -0000 1.2
+++ SystemContext.java 25 Feb 2004 18:54:24 -0000 1.3
@@ -118,10 +118,10 @@
long getDefaultDeploymentTimeout();
/**
- * Return the enabled status of the code security policy.
- * @return the code security enabled status
+ * Return the system security model.
+ * @return the security model
*/
- boolean isCodeSecurityEnabled();
+ SecurityModel getSecurityModel();
//------------------------------------------------------------------
// runtime operations
1.1 avalon/merlin/composition/spi/src/java/org/apache/avalon/composition/provider/SecurityModel.java
Index: SecurityModel.java
===================================================================
/*
* Copyright 2004 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.avalon.composition.provider;
import java.security.Permission;
import java.security.cert.Certificate;
/**
* <p>Specification of a security model.</p>
*
* @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
* @version $Revision: 1.1 $ $Date: 2004/02/25 18:54:24 $
*/
public interface SecurityModel
{
/**
* Return the enabled status of the code security policy.
* @return the code security enabled status
*/
boolean isCodeSecurityEnabled();
/**
* Return the set of default permissions.
*
* @return the permissions
*/
Permission[] getDefaultPermissions();
/**
* Return the set of trusted certificates.
*
* @return the trusted certificates
*/
Certificate[] getTrustedCertificates();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org