Package com._1c.g5.v8.dt.mdnative.common
Class MdNativeMobileClientSignProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.mdnative.common.MdNativeMobileClientSignProvider
-
- All Implemented Interfaces:
IMdNativeMobileClientSignProvider
public class MdNativeMobileClientSignProvider extends Object implements IMdNativeMobileClientSignProvider
Default implementation ofIMdNativeMobileClientSignProvider
.
-
-
Constructor Summary
Constructors Constructor Description MdNativeMobileClientSignProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generatePrivateKey(long scomDataAddress)
Generates new private key for creating mobile application signatureString
generateSignature(long scomDataAddress, String privateKey, String mcdEnumsData, String mcdRefsData, String mcdRegKeysData, String mcdInfoRegKeysData)
Gets mobile application signatureString
getPublicKeyByPrivate(long scomDataAddress, String privateKey)
Gets public key by private for creating mobile application signature
-
-
-
Method Detail
-
generatePrivateKey
public String generatePrivateKey(long scomDataAddress)
Description copied from interface:IMdNativeMobileClientSignProvider
Generates new private key for creating mobile application signature- Specified by:
generatePrivateKey
in interfaceIMdNativeMobileClientSignProvider
- Parameters:
scomDataAddress
- actual data memory address with loading platform SCOM components- Returns:
- new private key for creating mobile application signature, never
null
-
getPublicKeyByPrivate
public String getPublicKeyByPrivate(long scomDataAddress, String privateKey)
Description copied from interface:IMdNativeMobileClientSignProvider
Gets public key by private for creating mobile application signature- Specified by:
getPublicKeyByPrivate
in interfaceIMdNativeMobileClientSignProvider
- Parameters:
scomDataAddress
- actual data memory address with loading platform SCOM componentsprivateKey
- actual private key for creating mobile application signature, cannot benull
- Returns:
- public key for creating mobile application signature, never
null
-
generateSignature
public String generateSignature(long scomDataAddress, String privateKey, String mcdEnumsData, String mcdRefsData, String mcdRegKeysData, String mcdInfoRegKeysData)
Description copied from interface:IMdNativeMobileClientSignProvider
Gets mobile application signature- Specified by:
generateSignature
in interfaceIMdNativeMobileClientSignProvider
- Parameters:
scomDataAddress
- actual data memory address with loading platform SCOM componentsprivateKey
- 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
-
-