Class TerminalFactory

java.lang.Object
javax.smartcardio.TerminalFactory

public final class TerminalFactory extends Object
A factory for CardTerminal objects. It allows an application to
  • obtain a TerminalFactory by calling one of the static factory methods in this class (getDefault() or getInstance()).
  • use this TerminalFactory object to access the CardTerminals by calling the terminals() method.

Each TerminalFactory has a type indicating how it was implemented. It must be specified when the implementation is obtained using a getInstance() method and can be retrieved via the getType() method.

The following standard type names have been defined:

PC/SC
an implementation that calls into the PC/SC Smart Card stack of the host platform. Implementations do not require parameters and accept "null" as argument in the getInstance() calls.
None
an implementation that does not supply any CardTerminals. On platforms that do not support other implementations, getDefaultType() returns None and getDefault() returns an instance of a None TerminalFactory. Factories of this type cannot be obtained by calling the getInstance() methods.
Additional standard types may be defined in the future.

Note: Provider implementations that accept initialization parameters via the getInstance() methods are strongly encouraged to use a Properties object as the representation for String name-value pair based parameters whenever possible. This allows applications to more easily interoperate with multiple providers than if each provider used different provider specific class as parameters.

TerminalFactory utilizes an extensible service provider framework. Service providers that wish to add a new implementation should see the TerminalFactorySpi class for more information.

Since:
1.6
See Also: