Establishes a connection to the card.
If a connection has previously established using
the specified protocol, this method returns the same Card object as
the previous call.
Parameters:
-
protocol - the protocol to use ("T=0", "T=1", or "T=CL"), or "*" to
connect using any available protocol.
Throws:
-
NullPointerException - if protocol is null
-
IllegalArgumentException - if protocol is an invalid protocol
specification
-
CardNotPresentException - if no card is present in this terminal
-
CardException - if a connection could not be established
using the specified protocol or if a connection has previously been
established using a different protocol
-
SecurityException - if a SecurityManager exists and the
caller does not have the required
{@linkplain CardPermission permission}