API documentation - siimsuu1/MOPP-iOS GitHub Wiki
First-time setup and version info
MoppLibManager.h, @interface MoppLibManager
- (void)setupWithSuccess:(EmptySuccessBlock)success andFailure:(FailureBlock)failure usingTestDigiDocService:(BOOL)useTestDDS;
Parameter | Type | Description |
---|---|---|
success | EmptySuccessBlock |
Called by the setupWithSuccess when setup is completed successfully |
failure | FailureBlock |
Called when something goes wrong with the setup |
useTestDDS | BOOL |
Set to YES when need to use Digidoc Test Service |
None
Preliminary setup for MoppLib. Digidocpp is configured and initialized. TLS certificates cache is updated.
This method should be called before any other API call
MoppLibManager.h, @interface MoppLibManager
- (NSString *)moppLibVersion;
None
Type | Description |
---|---|
NSString* |
Textual representation of MoppLib version |
This method returns textual representation of MoppLib version
MoppLibManager.h, @interface MoppLibManager
- (NSString *)libdigidocppVersion;
None
Type | Description |
---|---|
NSString* |
Textual representation of libdigidocpp version |
This method returns textual representation of libdigidocpp version
Signed container actions:
- creating container
- validating container
- removing and adding signature to and from container
- adding and removing data files to and from container
- extracting data files from container
MoppLibContainerActions.h, @interface MoppLibContainerActions
- (void)openContainerWithPath:(NSString *)containerPath success:(ContainerBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
containerPath | NSString* |
File path to existing container file |
success | ContainerBlock |
Called when container is successfully validated; has MoppLibContainer object as a parameter |
failure | FailureBlock |
Called when invalidating container fails; has NSError* object as parameter for additional information |
None
This method is used to validate container. If container is successfully validated then MoppLibContainer
object is returned
as ContainerBlock
parameter
MoppLibContainerActions.h, @interface MoppLibContainerActions
- (void)createContainerWithPath:(NSString *)containerPath withDataFilePaths:(NSArray *)dataFilePaths success:(ContainerBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
containerPath | NSString* |
File path for new container |
dataFilePaths | NSArray* |
Array of strings containing file paths to data files for including to created container |
success | ContainerBlock |
Called when container is successfully created; has MoppLibContainer object as a parameter |
failure | FailureBlock |
Called when creating new container fails; has NSError* object as parameter for additional information |
None
This method creates a new container and validates it. MoppLibContainer
object is returned from ContainerBlock if operations is successful
MoppLibContainerActions.h, @interface MoppLibContainerActions
- (void)addDataFilesToContainerWithPath:(NSString *)containerPath withDataFilePaths:(NSArray *)dataFilePaths success:(ContainerBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
containerPath | NSString* |
Existing file path to container |
dataFilePaths | NSArray* |
Array of data file paths to add to container |
success | ContainerBlock |
Called when data files are successfully added to container; has MoppLibContainer object as a parameter |
failure | FailureBlock |
Called when adding data files to container fails; has NSError* object as parameter for additional error information |
None
This method adds files to container
MoppLibContainerActions.h, @interface MoppLibContainerActions
- (void)removeDataFileFromContainerWithPath:(NSString *)containerPath atIndex:(NSUInteger)dataFileIndex success:(ContainerBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
containerPath | NSString* |
Path to existing container file |
dataFileIndex | NSUInteger |
Index to data file to remove from container |
success | ContainerBlock |
Called when data file is successfully removed from container; has MoppLibContainer object as a parameter |
failure | FailureBlock |
Called when removing data file from container fails; has NSError* object as parameter for additional error information |
None
This method removes data file from container
MoppLibContainerActions.h, @interface MoppLibContainerActions
- (void)getContainersWithSuccess:(void(^)(NSArray *containers))success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
success | void(^)(NSArray *containers) |
Called when data file is successfully removed from container; has array of MoppLibContainer type objects as a parameter |
failure | FailureBlock |
Called when receiving available containers fail; has NSError* object as parameter for additional error information |
None
This method receives all available containers
MoppLibContainerActions.h, @interface MoppLibContainerActions
- (void)removeSignature:(MoppLibSignature *)moppSignature fromContainerWithPath:(NSString *)containerPath success:(ContainerBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
moppSignature | MoppLibSignature |
Signature to remove from container |
containerPath | NSString* |
Path to existing container file |
success | ContainerBlock |
Called when signature is successfully removed from container; has MoppLibContainer object as a parameter |
failure | FailureBlock |
Called when removing signature from container fails; has NSError* object as parameter for additional error information |
None
This method removes signature from container
MoppLibContainerActions.h, @interface MoppLibContainerActions
- (void)container:(NSString *)containerPath saveDataFile:(NSString *)fileName to:(NSString *)path success:(VoidBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
containerPath | NSString* |
Path to existing container file |
filename | NSString* |
File name to save data file as |
path | NSString* |
Folder path to save data file to |
success | VoidBlock |
Called when data file is successfully extracted from container and saved to specified location |
failure | FailureBlock |
Called when extracting data file from container fails to saving data file to specified location fails; has NSError* object as parameter for additional error information |
None
This method extracts data file from the container and saves it to the specified location
MoppLibContainerActions.h, @interface MoppLibContainerActions
- (void)addSignature:(NSString *)containerPath withPin2:(NSString*)pin2 success:(void(^)(MoppLibContainer *container, BOOL signatureWasAdded))success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
containerPath | NSString* |
File path to existing container |
pin2 | NSString* |
PIN2 code |
success | void(^)(MoppLibContainer *container, BOOL signatureWasAdded) |
Returns MoppLibContainer as a parameter; signatureWasAdded indicates whether signature was added |
failure | FailureBlock |
Called when adding signature to container fails; |
None
This method adds a signature to the container
ID-card actions
MoppLibCardActions.h, @interface MoppLibCardActions
+ (void)minimalCardPersonalDataWithSuccess:(PersonalDataBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
success | PersonalDataBlock |
Called when minimal card personal data is received successfully |
failure | FailureBlock |
Called when receiving minimal card personal data fails |
None
This method receives minimal card personal data
MoppLibCardActions.h, @interface MoppLibCardActions
+ (void)cardPersonalDataWithSuccess:(PersonalDataBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
success | PersonalDataBlock |
Called when receiving card personal data succeeds |
failure | FailureBlock |
Called when receiving card personal data fails |
None
This method receives card personal data
MoppLibCardActions.h, @interface MoppLibCardActions
+ (BOOL)isReaderConnected;
None
Type | Description |
---|---|
BOOL |
YES if reader connected, NO otherwise |
This method checks if reader is connected
MoppLibCardActions.h, @interface MoppLibCardActions
+ (void)isCardInserted:(BoolBlock) completion;
Parameter | Type | Description |
---|---|---|
completion | BoolBlock |
YES if card is inserted, NO otherwise |
None
This method checks if card is inserted into the reader
MoppLibCardActions.h, @interface MoppLibCardActions
+ (void)signingCertificateWithSuccess:(CertDataBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
success | CertDataBlock |
Called when information about signing certificate is successfully received |
failure | FailureBlock |
Called when receiving information about signing certificate fails |
None
This method provides information about signing certificate
MoppLibCardActions.h, @interface MoppLibCardActions
+ (void)authenticationCertificateWithSuccess:(CertDataBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
success | CertDataBlock |
Called when information about authentication certificate is successfully received |
failure | FailureBlock |
Called when receiving information about authentication certificate fails |
None
This method provides information about authentication certificate
MoppLibCardActions.h, @interface MoppLibCardActions
+ (void)pin1RetryCountWithSuccess:(NumberBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
success | NumberBlock |
Success block returning PIN1 retry count as NSNumber |
failure | FailureBlock |
Called when something went wrong requesting PIN1 retry count |
None
This method provides number of PIN1 attempts left before PIN1 is blocked.
MoppLibCardActions.h, @interface MoppLibCardActions
+ (void)pin1RetryCountWithSuccess:(NumberBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
success | NumberBlock |
Success block returning PIN2 retry count as NSNumber |
failure | FailureBlock |
Called when something went wrong requesting PIN2 retry count |
None
This method provides number of PIN2 attempts left before PIN2 is blocked.
MoppLibCardActions.h, @interface MoppLibCardActions
+ (void)pukRetryCountWithSuccess:(NumberBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
success | NumberBlock |
Success block returning PUK retry count as NSNumber |
failure | FailureBlock |
Called when something went wrong requesting PUK retry count |
None
This method provides number of PUK attempts left before PUK is blocked.
MoppLinPinActions.h, @interface MoppLinPinActions
+ (void)changePukTo:(NSString *)newPuk withOldPuk:(NSString *)oldPuk success:(VoidBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
newPuk | NSString* |
New PUK code |
oldPuk | NSString* |
Current PUK code |
success | VoidBlock |
Called when PUK is successfully changed to a new one |
failure | FailureBlock |
Called when something went wrong changing PUK code |
None
This method changes PUK code from old to new one
MoppLinPinActions.h, @interface MoppLibPinActions
+ (void)changePin1To:(NSString *)newPin1 withOldPin1:(NSString *)oldPin1 success:(VoidBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
newPin1 | NSString* |
New PIN1 code |
oldPin1 | NSString* |
Old PIN1 code |
success | VoidBlock |
Called when PIN1 is changed successfully using PIN1 |
failure | FailureBlock |
Called when something went wrong changing PIN1 code |
None
This method changes PIN1 code using old PIN1
MoppLibPinActions.h, @interface MoppLibPinActions
+ (void)changePin1To:(NSString *)newPin1 withPuk:(NSString *)puk success:(VoidBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
newPin1 | NSString* |
New PIN1 code |
puk | NSString* |
PUK code |
success | SuccessBlock |
Called when PIN1 is successfully changed with PUK code |
failure | FailureBlock |
Called something went wrong changing PIN1 with PUK code |
None
This method changes PIN1 code using PUK code
MoppLibPinActions.h, @interface MoppLibPinActions
+ (void)changePin2To:(NSString *)newPin2 withOldPin2:(NSString *)oldPin2 success:(VoidBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
newPin2 | NSString* |
New PIN2 code |
oldPin2 | NSString* |
Old PIN2 code |
success | SuccessBlock |
Called when PIN2 is successfully changed with PIN2 code |
failure | FailureBlock |
Called when something went wrong changing PIN2 code |
None
This method changes PIN2 code using old PIN2
MoppLibPinActions.h, @interface MoppLibPinActions
+ (void)changePin2To:(NSString *)newPin2 withPuk:(NSString *)puk success:(VoidBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
newPin1 | NSString* |
New PIN1 code |
puk | NSString* |
PUK code |
success | SuccessBlock |
Called when PIN2 is successfully changed |
failure | FailureBlock |
Called when PIN2 changing failed |
None
This method changes PIN2 code using PUK code
MoppLibPinActions.h, @interface MoppLibPinActions
+ (void)unblockPin1WithPuk:(NSString *)puk newPin1:(NSString *)newPin1 success:(VoidBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
puk | NSString* |
PUK code |
newPin1 | NSString* |
new PIN1 code |
success | SuccessBlock |
Called when PIN1 code successfully unblocked |
failure | FailureBlock |
Called when PIN1 code unblocking fails |
None
This method unblocks PIN1 using PUK code
MoppLibPinActions.h, @interface MoppLibPinActions
+ (void)unblockPin2WithPuk:(NSString *)puk newPin2:(NSString *)newPin2 success:(VoidBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
puk | NSString* |
PUK code |
newPin2 | NSString* |
New PIN2 code |
success | SuccessBlock |
Called when PIN2 code successfully unblocked |
failure | FailureBlock |
Called when PIN2 code unblocking fails |
None
This method unblocks PIN2 code using PUK
MoppLibCryptoActions.h, @interface MoppLibCryptoActions
- (void)searchLdapData:(NSString *)identifier success:(LdapBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
identifier | NSString* |
LDAP search request identifier |
success | LdapBlock |
Called on successful completion of action. |
failure | FailureBlock |
Block to be called when action fails. Includes error |
None
This method is used to search ldap data
MoppLibCryptoActions.h, @interface MoppLibCryptoActions
- (void)encryptData:(NSString *)fullPath withDataFiles:(NSArray*)dataFiles withAddressees:(NSArray*)addressees success:(VoidBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
fullPath | NSString* |
Full path of encrypted file |
dataFiles | NSArray* |
Array of CryptoDataFile associated with data files to be encrypted |
addressees | NSArray* |
Array of Addressee associated with addressees of the encrypted file |
success | VoidBlock |
Called when file is encrypted successfully |
failure | FailureBlock |
Called when something went wrong with encryption |
None
This method is used to encrypt data
MoppLibCryptoActions.h, @interface MoppLibCryptoActions
- (void)decryptData:(NSString *)fullPath withPin1:(NSString*)pin1 success:(DecryptedDataBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
fullPath | NSString* |
Full path of encrypted file |
pin1 | NSString* |
PIN1 code |
success | DecryptedDataBlock |
Called when file is decrypted successfully |
failure | FailureBlock |
Called when something went wrong with decryption |
None
This method is used to decrypt CDOC
MoppLibCryptoActions.h, @interface MoppLibCryptoActions
- (void)parseCdocInfo:(NSString *)fullPath success:(CdocContainerBlock)success failure:(FailureBlock)failure;
Parameter | Type | Description |
---|---|---|
fullPath | NSString* |
Full path of CDOC container |
success | CdocContainerBlock |
Called when file is parsed successfully |
failure | FailureBlock |
Called when something went wrong with parsing |
None
This method is used to parse and get info of CDOC container
MoppLibService.h, @interface MoppLibService
- (void)mobileCreateSignatureWithContainer:(NSString *)containerPath idCode:(NSString *)idCode language:(NSString *)language phoneNumber:(NSString *)phoneNumber withCompletion:(MobileCreateSignatureResponseBlock)completion andStatus:(SignatureStatusBlock)signatureStatus;
Parameter | Type | Description |
---|---|---|
containerPath | NSString* |
File path to existing container |
idCode | NSString* |
Personal identification code |
language | NSString* |
ISO language code |
phoneNumber | NSString* |
Phone number with country code |
completion | MobileCreateSignatureResponseBlock |
Called when container successfully signed using Mobile-ID |
status | SignatureStatusBlock |
Status code returned in Mobile-ID signing process; |
None
This is method is used to sign a container using Mobile-ID signing. Language parameter indicates in which language Mobile-ID challenge dialog in the phone is displayed.
MoppLibService.h, @interface MoppLibService
- (void)cancelMobileSignatureStatusPolling;
None
None
This method cancels Mobile-ID signing process
MoppLibCardReaderManager.h, @interface MoppLibCardReaderManager
- (void)startDiscoveringReaders;
None
None
Starts supported smart-card readers discovery.
MoppLibCardReaderManagerDelegate
can be used for discovered reader
status change
MoppLibCardReaderManager.h, @interface MoppLibCardReaderManager
- (void)stopDiscoveringReaders;
None
None
Prevents supported smart-card readers discovery when called
MoppLibCardReaderManager.h, @interface MoppLibCardReaderManager
- (void)setDelegate:id<MoppLibCardReaderManagerDelegate> delegate;
Parameter | Type | Description |
---|---|---|
delegate | MoppLibCardReaderManagerDelegate |
Protocol to propagate card reader status change events |
None
Set's status change delegate for MoppLibCardReaderManager
MoppLibCardReaderManager.h, @interface MoppLibCardReaderManager
@protocol MoppLibCardReaderManagerDelegate
- (void)moppLibCardReaderStatusDidChange:(MoppLibCardReaderStatus)status;
Used to delegate card reader status to the protocol implementation.
MoppLibCardReaderManager.h, @interface MoppLibCardReaderManager
@protocol MoppLibCardReaderManagerDelegate
Name | Value | Description |
---|---|---|
ReaderNotConnected | 0 | Supported readr is discovered |
ReaderConnected | 1 | Reader is discovered and connection to it has been made |
CardConnected | 2 | Card is inserted into the reader and powered on |
Smart-card reader status returned from MopplibCardReaderManagerDelegate's moppLibCardReaderStatusDidChange
MoppLibConstants.h
typedef NS_ENUM(int, MoppLibSignatureStatus)
Name | Value | Description |
---|---|---|
Valid | 0 | Signature is valid and equal to a handwritten signature |
Warning | 1 | Signature is valid but has warnings. Container has a specific feature that usually has arisen accidentally when containers were created. |
NonQSCD | 2 | The signature is not created by a QSCD |
Invalid | 3 | Digital signature has been declared invalid |
UnknownStatus | 4 | Programme was unable to check the validity of the signature at the given moment. |
MoppLibConstants.h
typedef NS_ENUM(NSUInteger, MoppLibErrorCode)
Name | Value | Description |
---|---|---|
moppLibErrorReaderNotFound | 10001 | Reader is not connected to phone |
moppLibErrorCardNotFound | 10002 | Reader is connected, but card is not detected |
moppLibErrorCardVersionUnknown | 10003 | Unknown card version |
moppLibErrorWrongPin | 10004 | Provided pin is wrong |
moppLibErrorGeneral | 10005 | General error |
moppLibErrorInvalidPin | 10006 | New pin does not apply to rules |
moppLibErrorPinMatchesVerificationCode | 10007 | New pin must be different from old pin or puk |
moppLibErrorIncorrectPinLength | 10008 | New pin is too short or too long |
moppLibErrorPinTooEasy | 10009 | New pin is too easy |
moppLibErrorPinContainsInvalidCharacters | 10010 | Pin contains invalid characters. Only numbers are allowed |
moppLibErrorUrlSessionCanceled | 10012 | NSURLErrorCanceled occured when connecting to external service. |
moppLibErrorXmlParsingError | 10013 | AEXMLDocument loadXml failed to parse data to XML. |
MoppLibErrorDDSError | 10014 | DigiDoc Service error |
moppLibErrorPinNotProvided | 10015 | User did not provide pin for action that required authentication |
moppLibErrorPinBlocked | 10016 | User did not provide pin for action that required authentication |
moppLibErrorFileNameTooLong | 10017 | File name too long |
moppLibErrorNoInternetConnection | 10018 | No internet connection |
moppLibErrorPinMatchesOldCode | 10019 | New pin must be different from old pin or puk |
moppLibErrorReaderSelectionCanceled | 10020 | User canceled card reader selection |
moppLibErrorRestrictedApi | 10021 | Restricted API. Some functionality is not available for third-party apps |
moppLibErrorLdapResponseNotFound | 10022 | Empty Ldap response |
moppLibErrorDuplicatedFilename | 10023 | Filename already exists in container |
MoppLibConstants.h
Name | Description |
---|---|
kMoppLibNotificationReaderStatusChanged | Notification to indicate reader status change |
kMoppLibNotificationRetryCounterChanged | Notification to indicate retry counter change |
MoppLibConstants.h
Name | Type | Description |
---|---|---|
DataSuccessBlock | void (^)(NSData *responseData); |
NSData* type object returned on successful operation |
ObjectSuccessBlock | void (^)(NSObject *responseObject); |
NSObject* type object returned on successful operation |
FailureBlock | void (^)(NSError *error); |
NSError* type object return upon operation failure |
CertDataBlock | void (^)(MoppLibCertificateData *certData); |
MoppLibCertificateData* type object returned on successful operation |
PersonalDataBlock | void (^)(MoppLibPersonalData *personalData); |
MoppLibPersonalData* type object returned on successful operation |
SignatureStatusBlock | void (^) (MoppLibContainer *container, NSError *error, NSString *status); |
Block used for signature status information |
ContainerBlock | void (^)(MoppLibContainer *container); |
MoppLibContainer* type object returned on successful container operation |
LdapBlock | void (^)(NSMutableArray *ldapResponse); |
NSMutableArray* of Addressee objects returned on successful operation |
CdocContainerBlock | void (^)(CdocInfo *cdocInfo); |
CdocInfo* type object returned on successful operation |
DecryptedDataBlock | void (^)(NSMutableDictionary *decryptedData); |
NSMutableDictionary* type object returned on successful operation |
MobileCreateSignatureResponseBlock | void (^)(MoppLibMobileCreateSignatureResponse); |
Mobile-ID signature response object return on successful Mobile-ID sign operation |
BoolBlock | void (^)(BOOL); |
Block type with BOOL as a parameter |
NumberBlock | void (^)(NSNumber*) |
Block type with NSNumber* as a parameter |
VoidBlock | void (^)(void); |
Empty callback block |
Objects returned from various MoppLib operations
MoppLibCertificateData.h, @interface MoppLibCertificateData
Name | Type | Description |
---|---|---|
isValid | BOOL |
YES if ceritifcate is valid, NO otherwise |
expiryDate | NSDate* |
Expiry date of certificate |
organization | MoppLibCertOrganization |
Organization of ceritifcate |
Name | Value | Description |
---|---|---|
IDCard | 0 | ID-card |
MobileID | 1 | Mobile-ID |
DigiID | 2 | Digi-ID |
EResident | 3 | E-resident |
Unknown | 4 | Unknown |
MoppLibPersonalData.h, @interface MoppLibPersonalData
Name | Type | Description |
---|---|---|
firstNameLine1 | NSString* |
Person's given name |
firstNameLine2 | NSString* |
Person's given name |
surname | NSString* |
Person's surname |
sex | NSString* |
Person's sex |
nationality | NSString* |
Person's nationality |
birthDate | NSString* |
Person's birth date |
personalIdentificationCode | NSString* |
Personal identification code |
documentNumber | NSString* |
Document number |
expiryDate | NSString* |
Expiration date |
dateIssued | NSString* |
Date issued |
residentPermitType | NSString* |
Type of residence permit |
MoppLibContainer.h, @interface MoppLibContainer
Name | Type | Description |
---|---|---|
fileName | NSString* |
Name of the container |
filePath | NSString* |
File path of the container |
fileAttributes | NSDictionary* |
File attributes of the container |
dataFiles | NSArray* |
Array of MoppLibDataFile objects associated with the container |
signatures | NSArray* |
Array of MoppLibSignature objects associated with the container |
Name | Return value | Description |
---|---|---|
isSigned | BOOL |
Returns YES if container is signed, NO otherwise |
isEmpty | BOOL |
Returns YES if container has no signatures of data files, NO otherwise |
isDDocType | BOOL |
Returns YES container is DDOC type, NO otherwise |
isAsiceType | BOOL |
Returns YES if container is ASiC-E type, NO otherwise |
isLegacyType | BOOL |
Return YES if container is legacy type (ADOC, EDOC, DDOC, ASICS, PDF), NO otherwise |
fileNameWithoutExtension | NSString* |
Container name without the extension |
getNextSignatureId | NSString* |
Returns next signature ID |
MoppLibDataFile.h, @interface MoppLibDataFile
Name | Type | Descriptione |
---|---|---|
mediaType | NSString* |
Media type of the data file |
fieldId | NSString* |
File ID of the data file |
fileName | NSString* |
Filename of data file |
fileSize | long |
File size of data file |
MoppLibSignature.h, @interface MoppLibSignature
Name | Type | Description |
---|---|---|
subjectName | NSString* |
Contains signer's fullname and personal identification code |
timestamp | NSDate* |
Signature timestamp |
status | MoppLibSignatureStatus |
Signature status |
MoppLibMobileCreateSignatureResponse.h, @interface MoppLibMobileCreateSignatureResponse
Name | Type | Description |
---|---|---|
challengeId | NSString* |
Mobile-ID challenge ID |
sessCode | NSInteger |
Session code |
status | NSString* |
Signature response status |
CdocInfo.h, @interface CdocInfo
Name | Type | Description |
---|---|---|
addressees | NSMutableArray<Addressee *> |
Cdoc container addressees |
dataFiles | NSMutableArray<CryptoDataFile *> |
Cdoc container data files |
Addressee.h, @interface Addressee
Name | Type | Description |
---|---|---|
givenName | NSString* |
Given name of addressee |
surname | NSString* |
Surname of addressee |
identifier | NSString* |
Identifier of addressee |
type | NSString* |
Type of addressee certificate |
cert | NSData* |
Auth certificate of addressee |
validTo | NSDate* |
Expiration date of addressee auth certificate |
CryptoDataFile.h, @interface CryptoDataFile
Name | Type | Description |
---|---|---|
filename | NSString* |
Filename of data file |
filePath | NSString* |
File path of data file |