IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1

demo.smime.ess
Class MySecurityLabelHandler

java.lang.Object
  extended by demo.smime.ess.MySecurityLabelHandler
All Implemented Interfaces:
iaik.smime.ess.utils.SecurityLabelHandler

public class MySecurityLabelHandler
extends java.lang.Object
implements iaik.smime.ess.utils.SecurityLabelHandler

Simple demo SecurityLabelHandler.

This demo SecurityLabelHandler implements a simple security policy based on the default security classifications "unmarked", "unclassified", "restricted", "confidential", "secret", "top-secret". Since the SignedData message created by this demo only contains an ESS SecurityLabel attribute with classification "confidential", only this classification is processed by the processESSSecurityLabel method of this demo handler. "unmarked" and "unclassified" are handled as "not critical" content (i.e. the content can be accessed by any one), "secret", "top-secret" lock the content (i.e. it is not displayed), and "restricted" and "confidential" popup a confirmation dialog reminding the recipient about the confidentiality of the message content.

See Also:
SecurityLabelDemo, ESSSecurityLabel

Field Summary
static iaik.asn1.ObjectID MY_SECURITY_POLICY_ID
           
 
Constructor Summary
MySecurityLabelHandler()
           
 
Method Summary
 void processESSSecurityLabel(iaik.smime.ess.ESSSecurityLabel securityLabel, iaik.cms.SignerInfo[] signerInfos)
          Processes the given SecurityLabel attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MY_SECURITY_POLICY_ID

public static final iaik.asn1.ObjectID MY_SECURITY_POLICY_ID
Constructor Detail

MySecurityLabelHandler

public MySecurityLabelHandler()
Method Detail

processESSSecurityLabel

public void processESSSecurityLabel(iaik.smime.ess.ESSSecurityLabel securityLabel,
                                    iaik.cms.SignerInfo[] signerInfos)
                             throws iaik.smime.ess.SecurityLabelException
Processes the given SecurityLabel attribute.

Specified by:
processESSSecurityLabel in interface iaik.smime.ess.utils.SecurityLabelHandler
Parameters:
securityLabel - the SecurityLabel attribute to be handled
signerInfos - the SignerInfos of the SignedData message containing the SecurityLabel attribute
Throws:
iaik.smime.ess.SecurityLabelException - if the message content has to be locked because of the implemented security strategy

IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1

v6.1
(c) 2002 IAIK, (c) 2003 - 2025 SIC