Classes
The following classes are available globally.
-
Class that represents a bluetooth peripheral.
See moreDeclaration
Swift
public final class BluetoothPeripheral : Hashable -
Class that describes a certificate object. Inherits from
See moreTokenObject.Declaration
Swift
public final class Certificate : TokenObject -
Class that describes a data container object. Inherits from
See moreTokenObject.Declaration
Swift
public final class DataContainer : TokenObject -
Class that describes all document operations.
See moreDeclaration
Swift
public final class DocumentProcessor -
Class that represents a PIN that protects smart card contents.
See moreDeclaration
Swift
public final class Pin -
Class that describes a key object. Inherits from
TokenObject.API Changes (since 6.23.45.0) The mobile SDK API has evolved to support different key types:
PrivateKeyandPublicKeyare no more final classes.Subclasses:
PrivateKeyRSAandPublicKeyRSA.PrivateKeyECandPublicKeyEC. Methods specific to a particular key type have been moved into these concrete classes. For example: getModulus → only available for RSA Keys. getECParams → only available for EC keys. This change introduces some backward compatibility issues: to use these methods, you must cast the key to the appropriate class, see the example. On the other hand, methods common to all private keys sign, decrypt, hashAndSign, isPartialHash remain defined inPrivateKey. Their usage has not changed.Example:
See morelet key : Key if let publicKeyEC = key as? PublicKeyEC { publicKeyEC.getECParams { ecParams, error in if let error = error { print("Error: \(error.localizedDescription)") } else if let ecParams = ecParams { print("EC Params : \(ecParams)") } else { print("No data received") } } }Declaration
Swift
public class Key : TokenObject -
Class that describes a key pair object.
See moreDeclaration
Swift
public final class KeyPair -
Class to use for logging messages from middleware.
Call
See moreLog.setLogto redirect all traces to yourLogImplementationobject.Declaration
Swift
public final class Log -
Class that represents the credential state during a
Pin.requestCredential(properties:state:environment:completionHandler:)/Pin.login(value:state:completionHandler:)sequence.It can be created using
See morePin.initCredentialState()orCredentialState.init().Declaration
Swift
public final class CredentialState -
Class that represents the credential value returned by the
Pin.requestCredential(properties:state:environment:completionHandler:)function.Note:
This object can be used in login process.
Declaration
Swift
public final class CredentialValue -
Class that describes the format constraints of the PIN (which must be enforced when changing the PIN value).
The constraints are obtained as an
ArrayofPinConstraintobjects by callingPin.getConstraints(completionHandler:).The
PinConstraintobjects, that describe a constraint, all have a field namedtype. This field indicates the type of the constraint, and optionally, the parameters of the constraint. Thetypecan be one of the following (this list may be extended in the future):"minLength": The number of characters in the PIN must be at least the number given by the first parameter."exactLength": The number of characters in the PIN must be exactly the number given by the first parameter."minMaxLength": The number of characters in the PIN must be between the first parameter and the second parameter."minDigits": The PIN must contain at least the number of the first parameter digits characters."minUpperCase": The PIN must contain at least the number of uppercase letters given by the first parameter."minSpecial": The PIN must contain at least the number of special characters given by the first parameter."minLowerCase": The PIN must contain at least the number of lowercase letters given by the first parameter."newOldDifferent": The new PIN value must be different from the old PIN value."newOldDissimilar": The percentage of the characters that must differ between the new PIN and the old PIN value is given in the first parameter."maxIncDecSequence": There must be no sequences of increasing/decreasing characters that reach or exceed the first parameter."maxIdenticalSequence": The max Identical sequence between the new PIN and the Old pin
Declaration
Swift
public final class PinConstraint -
Class that describes a private EC key object. Inherits from
See morePrivateKey.Declaration
Swift
public final class PrivateKeyEC : PrivateKey -
Class that describes a private RSA key object. Inherits from
See morePrivateKey.Declaration
Swift
public final class PrivateKeyRSA : PrivateKey -
Class that describes a public key object. Inherits from
Key. Since version 6.23.45.0, changes have been introduced onPublicKeyandPrivateKey. See the note inKeyfor more detailsDeclaration
Swift
public class PublicKey : Key -
Class that represent a smart card reader (either a physical, hardware reader, or a virtual smart card reader).
See moreDeclaration
Swift
public final class Reader -
Main class for the Smart Card Middleware API.
This class provides the initial entry points for connecting to the iOS API, obtaining the readers and listening to events.
See moreDeclaration
Swift
public final class SCMEnvironment -
Class that represents connection to a smart card (or more generally, any cryptographic device). Token objects are obtained by calling the
See moreReader.connect(completionHandler:)method.Declaration
Swift
public final class Token -
Class that describes a cryptographic object located in a smart card.
See moreDeclaration
Swift
public class TokenObjectextension TokenObject: Hashable
Classes Reference