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.AbstractScomConnectionLoader
LD_LIBRARY_PATH, version
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MdNativeMobileClientSignLoader(String id, Version version, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.String
generatePrivateKey()
Generates new private key for creating mobile application signatureString
generateSignature(String privateKey, String mcdEnumsData, String mcdRefsData, String mcdRegKeysData, String mcdInfoRegKeysData)
Gets mobile application signatureString
getPublicKeyByPrivate(String privateKey)
Gets public key by private for creating mobile application signatureboolean
isDisposed()
Checks that separate process with loaded dynamics libs live-
Methods inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
getLibraries, getMessageException, getProcessEnvironments, getRuntimeInstallation, getSystemLibraries
-
-
-
-
Constructor Detail
-
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 Detail
-
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 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
-
-