Package com._1c.g5.v8.dt.mdnative.common
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 calldispose()for release special data at the end operation for creating mobile application signature
- 
- 
Field Summary- 
Fields inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoaderLD_LIBRARY_PATH, version
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedMdNativeMobileClientSignLoader(String id, Version version, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()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.StringgeneratePrivateKey()Generates new private key for creating mobile application signatureStringgenerateSignature(String privateKey, String mcdEnumsData, String mcdRefsData, String mcdRegKeysData, String mcdInfoRegKeysData)Gets mobile application signatureStringgetPublicKeyByPrivate(String privateKey)Gets public key by private for creating mobile application signaturebooleanisDisposed()Checks that separate process with loaded dynamics libs live- 
Methods inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoadergetLibraries, getMessageException, getProcessEnvironments, getRuntimeInstallation, getSystemLibraries
 
- 
 
- 
- 
- 
Constructor Detail- 
MdNativeMobileClientSignLoaderprotected MdNativeMobileClientSignLoader(String id, Version version, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager) Constructor.- Parameters:
- id- unique id for creating infrastructure for creating mobile application signature, cannot be- null
- version- actual- Versionfor creating mobile application signature, cannot be- null
- processManager- actual- IProcessManager, cannot be- null
- resolvableRuntimeInstallationManager- actual- IResolvableRuntimeInstallationManager, cannot be- null
 
 
- 
 - 
Method Detail- 
generatePrivateKeypublic String generatePrivateKey() Generates new private key for creating mobile application signature- Returns:
- new private key for creating mobile application signature, never null
 
 - 
getPublicKeyByPrivatepublic 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
 
 - 
generateSignaturepublic 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
 
 - 
disposepublic 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.
 - 
isDisposedpublic boolean isDisposed() Checks that separate process with loaded dynamics libs live- Returns:
- falseif separate process alive,- trueotherwise
 
 
- 
 
-