PCSC4Java  0.2
Library PCSC for Java language.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
fr.redbilled.pcscforjava.ATR Class Reference

List of all members.

Public Member Functions

 ATR (byte[] atr, int iClockCard)
byte[] getBytes ()
String getConvention ()
long getWorkWaitingTime ()
boolean isNegotiableMode ()
boolean isAbleToChangeFromSpecificToNegociableMode ()
boolean areTransmissionParametersImplicitlyKnownByTerminal ()
ArrayList< Byte > getListOfTA ()
ArrayList< Byte > getListOfTB ()
ArrayList< Byte > getListOfTC ()
ArrayList< Byte > getListOfTD ()
ArrayList< Byte > getListOfProtocols ()
ArrayList< String > getListOfTaTypes ()
byte getII ()
byte getWI ()
byte getTS ()
byte getTCK ()
byte getT0 ()
byte getPI2 ()
byte getPI1 ()
byte getN ()
byte getIFSI ()
byte getFI ()
byte getDI ()
byte getCWI ()
byte getBWI ()
byte getBlockErrorDetection ()
byte getClock ()
int getF ()
int getD ()
double getClkFMax ()
double getClkF ()
double getDefaultBaudRate ()
double getBaudRate ()
double getBlockWaitingTime ()
double getCharacterWaitingTime ()
double getExtraGuardTime ()
boolean isSupportedProtocol (int iProtocol)
byte getVoltageClass ()
byte[] getHistoricalBytes ()
boolean isTaPresent (int iIndex)
boolean isTbPresent (int iIndex)
boolean isTcPresent (int iIndex)
boolean isTdPresent (int iIndex)
String toString ()
boolean equals (Object obj)
int hashCode ()
Object[] getDescription ()

Detailed Description

A Smart Card's answer-to-reset bytes. A Card's ATR object can be obtained by calling Card::getATR}. This class does not attempt to verify that the ATR encodes a semantically valid structure.

Instances of this class are immutable. Where data is passed in or out via byte arrays, defensive cloning is performed.

See also:
Card::getATR
Since:
1.6
Author:
Andreas Sterbenz
JSR 268 Expert Group

Definition at line 45 of file ATR.java.


Constructor & Destructor Documentation

fr.redbilled.pcscforjava.ATR.ATR ( byte[]  atr,
int  iClockCard 
)

Constructs an ATR from a byte array.

Parameters:
atrthe byte array containing the answer-to-reset bytes
Exceptions:
NullPointerExceptionif atr is null

Definition at line 171 of file ATR.java.

Here is the caller graph for this function:


Member Function Documentation

boolean fr.redbilled.pcscforjava.ATR.equals ( Object  obj)

Compares the specified object with this ATR for equality. Returns true if the given object is also an ATR and its bytes are identical to the bytes in this ATR.

Parameters:
objthe object to be compared for equality with this ATR
Returns:
true if the specified object is equal to this ATR

Definition at line 871 of file ATR.java.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 758 of file ATR.java.

Here is the call graph for this function:

Definition at line 763 of file ATR.java.

Here is the call graph for this function:

Definition at line 718 of file ATR.java.

Here is the caller graph for this function:

Returns a copy of the bytes in this ATR.

Returns:
a copy of the bytes in this ATR.

Definition at line 595 of file ATR.java.

Definition at line 768 of file ATR.java.

Here is the call graph for this function:

Definition at line 748 of file ATR.java.

Here is the caller graph for this function:

Definition at line 743 of file ATR.java.

Definition at line 728 of file ATR.java.

Definition at line 599 of file ATR.java.

Definition at line 713 of file ATR.java.

Here is the caller graph for this function:

Definition at line 738 of file ATR.java.

Here is the caller graph for this function:

Definition at line 753 of file ATR.java.

Here is the call graph for this function:

Returns the description of the ATR. The first index of the return array is the type of the current byte (e.g: TD1 TA2 TB1 ...). The second one is the value of the current byte (e.g 0x3F ...). The third one contains the description of the current byte. One entry in the array is used by byte.

Returns:
the description of the ATR.
Exceptions:
ParseExceptionif the current ATR is malformed.

Definition at line 901 of file ATR.java.

Definition at line 708 of file ATR.java.

Definition at line 773 of file ATR.java.

Here is the call graph for this function:

Definition at line 733 of file ATR.java.

Here is the caller graph for this function:

Definition at line 703 of file ATR.java.

Returns a copy of the historical bytes in this ATR. If this ATR does not contain historical bytes, an array of length zero is returned.

Returns:
a copy of the historical bytes in this ATR.

Definition at line 816 of file ATR.java.

Definition at line 698 of file ATR.java.

Definition at line 658 of file ATR.java.

Definition at line 648 of file ATR.java.

Definition at line 628 of file ATR.java.

Definition at line 653 of file ATR.java.

Definition at line 633 of file ATR.java.

Definition at line 638 of file ATR.java.

Definition at line 643 of file ATR.java.

Definition at line 693 of file ATR.java.

Here is the caller graph for this function:

Definition at line 688 of file ATR.java.

Definition at line 683 of file ATR.java.

Definition at line 678 of file ATR.java.

Definition at line 673 of file ATR.java.

Definition at line 668 of file ATR.java.

Definition at line 804 of file ATR.java.

Definition at line 663 of file ATR.java.

Definition at line 604 of file ATR.java.

Returns the hash code value for this ATR.

Returns:
the hash code value for this ATR.

Definition at line 887 of file ATR.java.

Definition at line 609 of file ATR.java.

Definition at line 787 of file ATR.java.

Here is the caller graph for this function:

Definition at line 822 of file ATR.java.

Definition at line 830 of file ATR.java.

Definition at line 838 of file ATR.java.

Definition at line 846 of file ATR.java.

Returns a string representation of this ATR.

Returns:
a String representation of this ATR.

Definition at line 859 of file ATR.java.


The documentation for this class was generated from the following file: