Class MdNativeMobileClientSignLoader

java.lang.Object
com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
com._1c.g5.v8.dt.mdnative.common.MdNativeMobileClientSignLoader

public class MdNativeMobileClientSignLoader extends AbstractScomConnectionLoader
Special provider for creating mobile application signature.
Important: Client should call dispose() for release special data at the end operation for creating mobile application signature
  • Constructor Details

  • Method Details

    • generatePrivateKey

      public String generatePrivateKey()
      Generates new private key for creating mobile application signature
      Returns:
      new private key for creating mobile application signature, never null
    • getPublicKeyByPrivate

      public String getPublicKeyByPrivate(String privateKey)
      Gets public key by private for creating mobile application signature
      Parameters:
      privateKey - actual private key for creating mobile application signature, cannot be null
      Returns:
      public key for creating mobile application signature, never null
    • generateSignature

      public String generateSignature(String privateKey, String mcdEnumsData, String mcdRefsData, String mcdRegKeysData, String mcdInfoRegKeysData)
      Gets mobile application signature
      Parameters:
      privateKey - actual private key for creating mobile application signature, cannot be null
      mcdEnumsData - data for sign corresponding to MobileClientDigestTypes#getMcdEnums(), cannot be null
      mcdRefsData - data for sign corresponding to MobileClientDigestTypes#getMcdRefs(), cannot be null
      mcdRegKeysData - data for sign corresponding to MobileClientDigestTypes#getMcdRegKeys(), cannot be null
      mcdInfoRegKeysData - data for sign corresponding to MobileClientDigestTypes#getMcdInfoRegKeys(), cannot be null
      Returns:
      mobile application signature, never null
    • dispose

      public void dispose()
      Releases special data for getting xml presentation of special form model with transformator phase results
      You should call this method if you have no plans to soon get xml presentation of special form model with transformator phase results or calling other methods from this class. Attention! Client shouldn't call it after each call of methods from this class.
    • isDisposed

      public boolean isDisposed()
      Checks that separate process with loaded dynamics libs live
      Returns:
      false if separate process alive, true otherwise