iaik.smime.ess.utils
Interface SecurityLabelHandler


public interface SecurityLabelHandler

Generic interface to may be implemented to decide about how to handle an ESSSecurityLabel or EquivalentLabels attribute when detected in a SignerInfo during processing a mutli-layered ESS S/MIME message.


Method Summary
 void processESSSecurityLabel(ESSSecurityLabel securityLabel, SignerInfo[] signerInfos)
          Proccesses an ESSSecurityLabel attribute and may process EquivalentLabels attributes.
 

Method Detail

processESSSecurityLabel

void processESSSecurityLabel(ESSSecurityLabel securityLabel,
                             SignerInfo[] signerInfos)
                             throws SecurityLabelException
Proccesses an ESSSecurityLabel attribute and may process EquivalentLabels attributes.

This method may be implemented to handle an ESSSecurityLabel attribute when detected in a SignerInfo during processing a multi-layered ESS S/MIME message. If an ESSSecurityLabel attribute is included in one SignerInfo then it must be included in all SignerInfos of the SignedData object and all these ESSSecurityLabel attributes must be identical. For that reason all the SignerInfos are supplied to this method, too. This method also may be implemented to handle EquivalentLabels attributes if included in any of the given SignerInfos.

Parameters:
securityLabel - the ESSSecurityLabel attribute to be processed
signerInfos - the SignerInfos containing the ESSSecurityLabel attribute
Throws:
SecurityLabelException - signalizing some problem during processing of the ESSSecurityLabel attribute

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

IAIK-CMS 6.0, (c) 2002 IAIK, (c) 2003, 2023 SIC