VSSRequestContextExtended Class Reference

Inherits from VSSRequestContext : NSObject
Declared in VSSRequestContextExtended.h

Overview

Extended request context is used by the actual requests to fit the Virgil Services requirements.

The Virgil Services require some additional values in the request headers. Some requests should be encrypted. The extended context manages all the requirements for each request made to the Virgil Services.

Other Methods

  serviceCard

Contains Virgil Card of the Virgil Service where request should be done.

@property (nonatomic, strong, readonly) VSSCard *serviceCard

Declared In

VSSRequestContextExtended.h

  requestEncrypt

Contains flag which shows if request should be encrypted or not.

@property (nonatomic, strong, readonly) NSNumber *requestEncrypt

Declared In

VSSRequestContextExtended.h

  responseVerify

Contains flag which tells if response is signed and should be verified by the SDK.

@property (nonatomic, strong, readonly) NSNumber *responseVerify

Declared In

VSSRequestContextExtended.h

  privateKey

Private key object wrapper which is used to compose the signature, etc.

@property (nonatomic, strong, readonly) VSSPrivateKey *privateKey

Declared In

VSSRequestContextExtended.h

  cardId

Virgil Card identifier of the card which is used for the request.

@property (nonatomic, strong, readonly) GUID *cardId

Declared In

VSSRequestContextExtended.h

  password

Custom password which should be used by the Virgil Service to encrypt the response, so it can be decrypted on the SDK side.

@property (nonatomic, strong, readonly) NSString *password

Declared In

VSSRequestContextExtended.h

Lifecycle

– initWithServiceUrl:serviceCard:requestEncrypt:responseVerify:privateKey:cardId:password:

Designated constructor.

- (instancetype __nonnull)initWithServiceUrl:(NSString *__nonnull)serviceUrl serviceCard:(VSSCard *__nullable)serviceCard requestEncrypt:(NSNumber *__nullable)requestEncrypt responseVerify:(NSNumber *__nullable)responseVerify privateKey:(VSSPrivateKey *__nullable)privateKey cardId:(GUID *__nullable)cardId password:(NSString *__nullable)password

Parameters

serviceUrl

Base (service) url which will be used by the request.

serviceCard

Virgil Card of the Virgil Service

requestEncrypt

Flag which shows if request should be encrypted or not.

responseVerify

Flag which tells if response is signed and should be verified by the SDK.

privateKey

Private key object wrapper which is used to compose the signature, etc.

cardId

Virgil Card identifier of the card which is used for the request.

password

Custom password which should be used by the Virgil Service to encrypt the response, so it can be decrypted on the SDK side.

Return Value

Instance of the Request context wrapper object.

Declared In

VSSRequestContextExtended.h