/******************************************************************************* * Copyright 2014 Federal Chancellery Austria * MOA-ID has been developed in a cooperation between BRZ, the Federal * Chancellery Austria - ICT staff unit, and Graz University of Technology. * * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by * the European Commission - subsequent versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a copy of the Licence at: * http://www.osor.eu/eupl/ * * Unless required by applicable law or agreed to in writing, software * distributed under the Licence is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Licence for the specific language governing permissions and * limitations under the Licence. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. ******************************************************************************/ /* * Copyright 2003 Federal Chancellery Austria * MOA-ID has been developed in a cooperation between BRZ, the Federal * Chancellery Austria - ICT staff unit, and Graz University of Technology. * * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by * the European Commission - subsequent versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a copy of the Licence at: * http://www.osor.eu/eupl/ * * Unless required by applicable law or agreed to in writing, software * distributed under the Licence is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Licence for the specific language governing permissions and * limitations under the Licence. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. */ package at.gv.egovernment.moa.id.commons.utils.ssl; import java.security.cert.X509Certificate; import java.util.Collections; import java.util.Date; import java.util.Set; import iaik.pki.revocation.RevocationConfiguration; import iaik.pki.revocation.dbcrl.config.DBCrlConfig; /** * Implementation of interface needed to initialize an IAIK JSSE TrustManager * @author Paul Ivancsics * @version $Id$ */ public class RevocationConfigurationImpl extends ObservableImpl implements RevocationConfiguration { /** * @see iaik.pki.revocation.RevocationConfiguration#getAlternativeDistributionPoints(java.security.cert.X509Certificate, java.security.cert.X509Certificate, java.util.Date) */ public Set getAlternativeDistributionPoints( X509Certificate arg0, X509Certificate arg1, Date arg2) { return Collections.EMPTY_SET; } /** * @see iaik.pki.revocation.RevocationConfiguration#archiveRevocationInfo(java.lang.String, java.lang.String) */ public boolean archiveRevocationInfo(String arg0, String arg1) { return false; } public Integer getCrlRetentionInterval(String arg0) { return null; } /* (non-Javadoc) * @see iaik.pki.revocation.RevocationConfiguration#getKeepRevocationInfo() */ @Override public boolean getKeepRevocationInfo() { return false; } /* (non-Javadoc) * @see iaik.pki.revocation.RevocationConfiguration#getPositiveOCSPResponders() */ @Override public Set getPositiveOCSPResponders() { // //TODO: !!!!! ASK Harald !!!!! // Map test = new HashMap(); // test.put("ALL", "ALL"); // return test.keySet(); return Collections.EMPTY_SET; } /* (non-Javadoc) * @see iaik.pki.revocation.RevocationConfiguration#skipIndirectCRLCheckForAlternativeDistributionPoints() */ @Override public boolean skipIndirectCRLCheckForAlternativeDistributionPoints() { //TODO: !!!!! ASK Harald !!!!! return false; } /* (non-Javadoc) * @see iaik.pki.revocation.RevocationConfiguration#getDataBaseCRLConfig() */ @Override public DBCrlConfig getDataBaseCRLConfig() { return null; } }