org.javacardforum.management
Interface CardHolder


public interface CardHolder

This interface represents a CardHolder in the card it implements and shall be implemented by an Applet

  • The interface should provide a way to share a PIN in the card by implemeting the PIN interface
  • The interface should provide a way to access an array of bytes that hold the public information about the cardholder

  • Method Summary
     short getCardHolder(byte[] destBuffer, short destOffset, short chOffset, byte length)
              Copy the card holder information from its source to a destination buffer
     short getCardHolderLength()
              Retrieves the length of the card holder information available in the card
     

    Method Detail

    getCardHolderLength

    public short getCardHolderLength()
    Retrieves the length of the card holder information available in the card
    Returns:
    the length of the card holder information

    getCardHolder

    public short getCardHolder(byte[] destBuffer,
                               short destOffset,
                               short chOffset,
                               byte length)
    Copy the card holder information from its source to a destination buffer
    Parameters:
    desBuffer - the destination to copy the card holder data
    desOffset - start offset into the destination buffer
    chOffset - offset into the cardholder data
    length - the amount of bytes to be copied
    Returns:
    destOffset + length