Package org.eclipse.keyple.plugin.pcsc
Class PcscPluginFactoryBuilder
- java.lang.Object
-
- org.eclipse.keyple.plugin.pcsc.PcscPluginFactoryBuilder
-
public final class PcscPluginFactoryBuilder extends java.lang.Object
Builds instances ofPcscPluginFactory
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.
Note: all setters of this class are optional.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();
It is possible to assign later a protocol type at the reader level using the methodPcscReader.setContactless(boolean)
.
A set of default protocol identification rules is also proposed.- Since:
- 2.0.0
- See Also:
PcscSupportedContactProtocol
,PcscSupportedContactlessProtocol
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PcscPluginFactoryBuilder.Builder
Builder to build aPcscPluginFactory
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PcscPluginFactoryBuilder.Builder
builder()
Creates builder to build aPcscPluginFactory
.
-
-
-
Method Detail
-
builder
public static PcscPluginFactoryBuilder.Builder builder()
Creates builder to build aPcscPluginFactory
.- Returns:
- created builder
- Since:
- 2.0.0
-
-