Class JCESecurityModule

  • All Implemented Interfaces:
    Configurable, SMAdapter<SecureDESKey>, LogSource

    public class JCESecurityModule
    extends BaseSMAdapter<SecureDESKey>
    JCESecurityModule is an implementation of a security module in software.

    It doesn't require any hardware device to work.
    JCESecurityModule also implements the SMAdapter, so you can view it: either as a self contained security module adapter that doesn't need a security module or a security module that plugs directly to jpos, so doesn't need a separate adapter.
    It relies on Java(tm) Cryptography Extension (JCE), hence its name.
    JCESecurityModule relies on the JCEHandler class to do the low level JCE work.

    WARNING: This version of JCESecurityModule is meant for testing purposes and NOT for life operation, since the Local Master Keys are stored in CLEAR on the system's disk. Comming versions of JCESecurity Module will rely on java.security.KeyStore for a better protection of the Local Master Keys.

Parameters:
imk - 16-bytes Issuer Master Key
panpsn - preformated PAN and PAN Sequence Number
Returns:
derived 16-bytes ICC Master Key with adjusted DES parity
Throws:
JCEHandlerException