com.acs.smartcard
Class TlvProperties

java.lang.Object
  extended by com.acs.smartcard.TlvProperties

public class TlvProperties
extends java.lang.Object

This class represents TLV properties in PC/SC 2.0 Part 10.

Since:
1.1

Field Summary
static int PROPERTY_bEntryValidationCondition
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_bMaxPINSize
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_bMinPINSize
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_bPPDUSupport
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_bTimeOut2
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_dwMaxAPDUDataSize
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_sFirmwareID
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_wIdProduct
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_wIdVendor
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_wLcdLayout
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_wLcdMaxCharacters
          Property defined in PC/SC 2.0 Part 10.
static int PROPERTY_wLcdMaxLines
          Property defined in PC/SC 2.0 Part 10.
 
Constructor Summary
TlvProperties()
          Creates an instance of TlvProperties.
TlvProperties(byte[] buffer, int bufferLength)
          Creates and initializes an instance of TlvProperties from the byte array.
 
Method Summary
 void clear()
          Remove all properties.
 void fromByteArray(byte[] buffer, int bufferLength)
          Initializes the TlvProperties from the byte array.
 java.lang.Object getProperty(int property)
          Gets the property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_wLcdLayout

public static final int PROPERTY_wLcdLayout
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_bEntryValidationCondition

public static final int PROPERTY_bEntryValidationCondition
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_bTimeOut2

public static final int PROPERTY_bTimeOut2
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_wLcdMaxCharacters

public static final int PROPERTY_wLcdMaxCharacters
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_wLcdMaxLines

public static final int PROPERTY_wLcdMaxLines
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_bMinPINSize

public static final int PROPERTY_bMinPINSize
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_bMaxPINSize

public static final int PROPERTY_bMaxPINSize
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_sFirmwareID

public static final int PROPERTY_sFirmwareID
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_bPPDUSupport

public static final int PROPERTY_bPPDUSupport
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_dwMaxAPDUDataSize

public static final int PROPERTY_dwMaxAPDUDataSize
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_wIdVendor

public static final int PROPERTY_wIdVendor
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

PROPERTY_wIdProduct

public static final int PROPERTY_wIdProduct
Property defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values
Constructor Detail

TlvProperties

public TlvProperties()
Creates an instance of TlvProperties.


TlvProperties

public TlvProperties(byte[] buffer,
                     int bufferLength)
Creates and initializes an instance of TlvProperties from the byte array.

Parameters:
buffer - the buffer.
bufferLength - the buffer length.
Method Detail

clear

public void clear()
Remove all properties.


getProperty

public java.lang.Object getProperty(int property)
Gets the property.

Parameters:
property - the property.
Returns:
the object. If the object is null, then the property is not supported.

fromByteArray

public void fromByteArray(byte[] buffer,
                          int bufferLength)
Initializes the TlvProperties from the byte array.

Parameters:
buffer - the buffer.
bufferLength - the buffer length.


Copyright © 2011-2012 Advanced Card Systems Ltd. All Rights Reserved.