Class CryptographicServiceMessage

  • All Implemented Interfaces:
    Loggeable

    public class CryptographicServiceMessage
    extends java.lang.Object
    implements Loggeable
    Cryptographic Service Message (CSM for short). A message for transporting keys or related information used to control a keying relationship. It is typically the contents of ISOField(123). For more information refer to ANSI X9.17: Financial Institution Key Mangement (Wholesale).

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MCL_ESM  
      static java.lang.String MCL_KSM  
      static java.lang.String MCL_RSI  
      static java.lang.String MCL_RSM  
      static java.lang.String TAG_CTP  
      static java.lang.String TAG_CTR  
      static java.lang.String TAG_ERF  
      static java.lang.String TAG_KD  
      static java.lang.String TAG_ORG  
      static java.lang.String TAG_RCV  
      static java.lang.String TAG_SVR  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addField​(java.lang.String tag, java.lang.String content)
      adds a field to the CSM
      void dump​(java.io.PrintStream p, java.lang.String indent)
      dumps CSM basic information
      java.lang.String getFieldContent​(java.lang.String tag)
      Returns the field content of a field with the given tag
      java.lang.String getMCL()  
      static CryptographicServiceMessage parse​(java.lang.String csmString)
      Parses a csm string
      void removeField​(java.lang.String tag)
      Remove field from CSM
      void removeFields​(java.lang.String... tags)
      Remove fields from CSM
      void setMCL​(java.lang.String mcl)  
      java.lang.String toString()
      Formats the CSM as a string, suitable for transfer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait