Reader

public class Reader

Class represents a smart card reader (either a physical or hardware reader).

Methods

connect

public Token connect()

Connects to the card inserted in the reader. This method succeeds only if the card is supported by the middleware.

Returns a Token object resulting from the operation.

Returns:the Token object connected to the reader.

getName

public String getName()

Gets the name of the reader.

Returns:the name of the reader.

getStatus

public Status getStatus()

Returns the status of the reader.

Returns:the status of the reader.

getType

public Type getType()

Returns the type of the reader.

Returns:the type of the reader.

isCardPresent

public boolean isCardPresent()

Returns true if the card is inserted in the reader.

Returns:true if the card is inserted in the reader; false otherwise