00001 /* 00002 * 00003 * Copyright (C) 1998-2005, OFFIS 00004 * 00005 * This software and supporting documentation were developed by 00006 * 00007 * Kuratorium OFFIS e.V. 00008 * Healthcare Information and Communication Systems 00009 * Escherweg 2 00010 * D-26121 Oldenburg, Germany 00011 * 00012 * THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRANTY 00013 * REGARDING THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR 00014 * FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR 00015 * ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND 00016 * PERFORMANCE OF THE SOFTWARE IS WITH THE USER. 00017 * 00018 * Module: dcmsign 00019 * 00020 * Author: Norbert Loxen, Marco Eichelberg 00021 * 00022 * Purpose: 00023 * classes: SiSecurityProfile 00024 * 00025 * Last Update: $Author: meichel $ 00026 * Update Date: $Date: 2005/12/08 16:04:45 $ 00027 * CVS/RCS Revision: $Revision: 1.6 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 #ifndef SISPROF_H 00035 #define SISPROF_H 00036 00037 #include "dcmtk/config/osconfig.h" 00038 #include "dcmtk/dcmsign/sitypes.h" /* for E_KeyType */ 00039 00040 #ifdef WITH_OPENSSL 00041 00042 #include "dcmtk/dcmdata/dcxfer.h" /* for E_TransferSyntax */ 00043 00044 class SiAlgorithm; 00045 class DcmItem; 00046 class DcmAttributeTag; 00047 class SiMAC; 00048 class DcmTagKey; 00049 00052 class SiSecurityProfile 00053 { 00054 public: 00055 00057 SiSecurityProfile() { } 00058 00060 virtual ~SiSecurityProfile() { } 00061 00066 virtual OFBool isAllowableMACType(E_MACType macType) const = 0; 00067 00072 virtual OFBool isAllowableMAC(const SiMAC& mac) const; 00073 00078 virtual OFBool isAllowableAlgorithmType(E_KeyType keyType) const = 0; 00079 00084 virtual OFBool isAllowableAlgorithm(const SiAlgorithm& algo) const; 00085 00090 virtual OFBool isAllowableTransferSyntax(E_TransferSyntax xfer) const = 0; 00091 00097 virtual OFBool attributeRequired(const DcmTagKey& key) const = 0; 00098 00104 virtual OFBool attributeForbidden(const DcmTagKey& key) const = 0; 00105 00113 virtual OFCondition updateAttributeList(DcmItem &item, DcmAttributeTag& tagList); 00114 00121 virtual OFBool checkAttributeList(DcmItem &item, DcmAttributeTag& tagList); 00122 00128 static OFBool containsTag(DcmAttributeTag& tagList, const DcmTagKey& key); 00129 00130 private: 00131 00133 SiSecurityProfile(SiSecurityProfile& arg); 00134 00136 SiSecurityProfile& operator=(SiSecurityProfile& arg); 00137 00138 }; 00139 00140 #endif 00141 #endif 00142 00143 /* 00144 * $Log: sisprof.h,v $ 00145 * Revision 1.6 2005/12/08 16:04:45 meichel 00146 * Changed include path schema for all DCMTK header files 00147 * 00148 * Revision 1.5 2003/06/04 14:21:03 meichel 00149 * Simplified include structure to avoid preprocessor limitation 00150 * (max 32 #if levels) on MSVC5 with STL. 00151 * 00152 * Revision 1.4 2001/11/16 15:50:50 meichel 00153 * Adapted digital signature code to final text of supplement 41. 00154 * 00155 * Revision 1.3 2001/09/26 14:30:22 meichel 00156 * Adapted dcmsign to class OFCondition 00157 * 00158 * Revision 1.2 2001/06/01 15:50:51 meichel 00159 * Updated copyright header 00160 * 00161 * Revision 1.1 2000/11/07 16:48:59 meichel 00162 * Initial release of dcmsign module for DICOM Digital Signatures 00163 * 00164 * 00165 */ 00166