com.acs.smartcard
Class Features

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

public class Features
extends java.lang.Object

This class represents features in PC/SC 2.0 Part 10.

Since:
1.1

Field Summary
static int FEATURE_ABORT
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_CCID_ESC_COMMAND
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_GET_KEY
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_GET_KEY_PRESSED
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_GET_TLV_PROPERTIES
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_IFD_DISPLAY_PROPERTIES
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_IFD_PIN_PROPERTIES
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_MCT_READER_DIRECT
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_MCT_UNIVERSAL
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_MODIFY_PIN_DIRECT
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_MODIFY_PIN_DIRECT_APP_ID
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_MODIFY_PIN_FINISH
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_MODIFY_PIN_START
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_SET_SPE_MESSAGE
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_VERIFY_PIN_DIRECT
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_VERIFY_PIN_DIRECT_APP_ID
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_VERIFY_PIN_FINISH
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_VERIFY_PIN_START
          Feature defined in PC/SC 2.0 Part 10.
static int FEATURE_WRITE_DISPLAY
          Feature defined in PC/SC 2.0 Part 10.
 
Constructor Summary
Features()
          Creates an instance of ReaderFeatures.
Features(byte[] buffer, int bufferLength)
          Creates and initializes an instance of Features from the byte array.
 
Method Summary
 void clear()
          Removes all control codes.
 void fromByteArray(byte[] buffer, int bufferLength)
          Initializes the Features from the byte array.
 int getControlCode(int feature)
          Gets the control code of feature.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURE_VERIFY_PIN_START

public static final int FEATURE_VERIFY_PIN_START
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_VERIFY_PIN_FINISH

public static final int FEATURE_VERIFY_PIN_FINISH
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_MODIFY_PIN_START

public static final int FEATURE_MODIFY_PIN_START
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_MODIFY_PIN_FINISH

public static final int FEATURE_MODIFY_PIN_FINISH
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_GET_KEY_PRESSED

public static final int FEATURE_GET_KEY_PRESSED
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_VERIFY_PIN_DIRECT

public static final int FEATURE_VERIFY_PIN_DIRECT
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_MODIFY_PIN_DIRECT

public static final int FEATURE_MODIFY_PIN_DIRECT
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_MCT_READER_DIRECT

public static final int FEATURE_MCT_READER_DIRECT
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_MCT_UNIVERSAL

public static final int FEATURE_MCT_UNIVERSAL
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_IFD_PIN_PROPERTIES

public static final int FEATURE_IFD_PIN_PROPERTIES
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_ABORT

public static final int FEATURE_ABORT
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_SET_SPE_MESSAGE

public static final int FEATURE_SET_SPE_MESSAGE
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_VERIFY_PIN_DIRECT_APP_ID

public static final int FEATURE_VERIFY_PIN_DIRECT_APP_ID
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_MODIFY_PIN_DIRECT_APP_ID

public static final int FEATURE_MODIFY_PIN_DIRECT_APP_ID
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_WRITE_DISPLAY

public static final int FEATURE_WRITE_DISPLAY
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_GET_KEY

public static final int FEATURE_GET_KEY
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_IFD_DISPLAY_PROPERTIES

public static final int FEATURE_IFD_DISPLAY_PROPERTIES
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_GET_TLV_PROPERTIES

public static final int FEATURE_GET_TLV_PROPERTIES
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values

FEATURE_CCID_ESC_COMMAND

public static final int FEATURE_CCID_ESC_COMMAND
Feature defined in PC/SC 2.0 Part 10.

See Also:
Constant Field Values
Constructor Detail

Features

public Features()
Creates an instance of ReaderFeatures.


Features

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

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

clear

public void clear()
Removes all control codes.


getControlCode

public int getControlCode(int feature)
Gets the control code of feature.

Parameters:
feature - the feature.
Returns:
the control code. If the control code is less than zero, then the feature is not supported.

fromByteArray

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

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


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