Class PcscPluginFactoryBuilder


  • public final class PcscPluginFactoryBuilder
    extends java.lang.Object
    Builds instances of PcscPluginFactory from values configured by the setters.

    The Builder checks if a value configured by a setter satisfies the syntax requirements defined by the PcscPluginFactoryAdapter class.

    The following example shows how to create a PcscPluginFactory object with the PcscPluginFactoryBuilder.

    
     PcscPluginFactory pcscPluginFactory = new PcscPluginFactoryBuilder()
          .useContactReaderIdentificationFilter(".*(Cherry TC|Identive).*")
          .useContactlessReaderIdentificationFilter(".*(ASK LoGO|ACS ACR122).*")
          .updateProtocolIdentificationRule(PcscSupportedContactlessProtocol).ISO_14443_4("3B8B80.*")
          .updateProtocolIdentificationRule(PcscSupportedContactlessProtocol).INNOVATRON_B_PRIME_CARD("3B8F8001805A0.*")
          .build();
     
    Note: all setters of this class are optional.
    It is possible to assign later a protocol type at the reader level using the method PcscReader.setContactless(boolean).
    A set of default protocol identification rules is also proposed.
    Since:
    2.0.0
    See Also:
    PcscSupportedContactProtocol, PcscSupportedContactlessProtocol