demo.smime.ess
Class MySecurityLabelHandler
java.lang.Object
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
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 |
MY_SECURITY_POLICY_ID
public static final iaik.asn1.ObjectID MY_SECURITY_POLICY_ID
MySecurityLabelHandler
public MySecurityLabelHandler()
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 handledsignerInfos
- 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
|
v6.1
(c) 2002
IAIK, (c) 2003 - 2025
SIC
|
|