Classes

The following classes are available globally.

  • Class that represents a bluetooth peripheral.

    See more

    Declaration

    Swift

    public final class BluetoothPeripheral : Hashable
  • Class that describes a certificate object. Inherits from TokenObject.

    See more

    Declaration

    Swift

    public final class Certificate : TokenObject
  • Pin

    Class that represents a PIN that protects smart card contents.

    See more

    Declaration

    Swift

    public final class Pin
  • Key

    Class that describes a key object. Inherits from TokenObject.

    See more

    Declaration

    Swift

    public class Key : TokenObject
  • Log

    Class to use for logging messages from middleware.

    Call Log.setLog to redirect all traces to your LogImplementation object.

    See more

    Declaration

    Swift

    public final class Log
  • Class that represents the current state of a credential, to use in a login process.

    Note:

    One instance of this class can be used during a complete login process with a CredentialValue in order to update informations contained in the PIN dialog.

    See more

    Declaration

    Swift

    public final class CredentialState
  • Class that represents the credential value returned by the Pin.requestCredential(pinProperties:state:readerName:cardLabel:env:completionHandler:) function.

    Note:

    This object can be used in login process.

    See more

    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 Array of PinConstraint objects by calling Pin.getConstraints(completionHandler:).

    The PinConstraint objects, that describe a constraint, all have a field named type. This field indicates the type of the constraint, and optionally, the parameters of the constraint. The type can 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
    See more

    Declaration

    Swift

    public final class PinConstraint
  • Class that describes a private key object. Inherits from Key.

    See more

    Declaration

    Swift

    public final class PrivateKey : Key
  • Class that describes a public key object. Inherits from Key.

    See more

    Declaration

    Swift

    public final class PublicKey : Key
  • Class that represent a smart card reader (either a physical, hardware reader, or a virtual smart card reader).

    See more

    Declaration

    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 more

    Declaration

    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 Reader.connect(completionHandler:) method.

    See more

    Declaration

    Swift

    public final class Token
  • Class that describes a cryptographic object located in a smart card.

    See more

    Declaration

    Swift

    public class TokenObject
    extension TokenObject: Hashable