Coverage Report - org.kuali.rice.ksb.security.admin.service.JavaSecurityManagementService
 
Classes in this File Line Coverage Branch Coverage Complexity
JavaSecurityManagementService
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2008 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.ksb.security.admin.service;
 17  
 
 18  
 import java.security.GeneralSecurityException;
 19  
 import java.security.KeyStore;
 20  
 import java.security.KeyStoreException;
 21  
 import java.security.PrivateKey;
 22  
 import java.security.cert.Certificate;
 23  
 import java.util.List;
 24  
 
 25  
 import org.kuali.rice.ksb.security.admin.KeyStoreEntryDataContainer;
 26  
 
 27  
 /**
 28  
  * This is an interface for the Java Security Management piece of the KSB module
 29  
  * of Rice. It is used for modifying and creating keystores and certificates
 30  
  * 
 31  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 32  
  * 
 33  
  */
 34  
 public interface JavaSecurityManagementService {
 35  
  
 36  
     public void removeClientCertificate(String alias) throws KeyStoreException;
 37  
     
 38  
     public KeyStore generateClientKeystore(String alias, String passphrase) throws GeneralSecurityException;
 39  
     
 40  
     public List<KeyStoreEntryDataContainer> getListOfModuleKeyStoreEntries();
 41  
     
 42  
     public String getModuleKeyStoreAlias();
 43  
     
 44  
     public String getModuleKeyStoreLocation();
 45  
     
 46  
     public String getModuleSignatureAlgorithm();
 47  
     
 48  
     public Certificate getCertificate(String alias) throws KeyStoreException;
 49  
     
 50  
     public PrivateKey getModulePrivateKey();
 51  
     
 52  
     public boolean isAliasInKeystore(String alias) throws KeyStoreException;
 53  
     
 54  
     public String getCertificateAlias(Certificate certificate) throws KeyStoreException;
 55  
     
 56  
 }