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
Special provider for creating mobile application signature.
Important: Client should call
Important: Client should call
dispose()
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.AbstractScomConnectionLoader
LD_LIBRARY_PATH, version
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MdNativeMobileClientSignLoader
(String id, Version version, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Generates new private key for creating mobile application signaturegenerateSignature
(String privateKey, String mcdEnumsData, String mcdRefsData, String mcdRegKeysData, String mcdInfoRegKeysData) Gets mobile application signaturegetPublicKeyByPrivate
(String privateKey) Gets public key by private for creating mobile application signatureboolean
Checks that separate process with loaded dynamics libs liveMethods inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
getLibraries, getMessageException, getProcessEnvironments, getRuntimeInstallation, getSystemLibraries
-
Constructor Details
-
MdNativeMobileClientSignLoader
protected MdNativeMobileClientSignLoader(String id, Version version, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager) Constructor.- Parameters:
id
- unique id for creating infrastructure for creating mobile application signature, cannot benull
version
- actualVersion
for creating mobile application signature, cannot benull
processManager
- actualIProcessManager
, cannot benull
resolvableRuntimeInstallationManager
- actualIResolvableRuntimeInstallationManager
, cannot benull
-
-
Method Details
-
generatePrivateKey
Generates new private key for creating mobile application signature- Returns:
- new private key for creating mobile application signature, never
null
-
getPublicKeyByPrivate
Gets public key by private for creating mobile application signature- Parameters:
privateKey
- actual private key for creating mobile application signature, cannot benull
- 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 benull
mcdEnumsData
- data for sign corresponding toMobileClientDigestTypes#getMcdEnums()
, cannot benull
mcdRefsData
- data for sign corresponding toMobileClientDigestTypes#getMcdRefs()
, cannot benull
mcdRegKeysData
- data for sign corresponding toMobileClientDigestTypes#getMcdRegKeys()
, cannot benull
mcdInfoRegKeysData
- data for sign corresponding toMobileClientDigestTypes#getMcdInfoRegKeys()
, cannot benull
- 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
-