Class SmartcardSession

    Definition

    Namespace:
    Tizen.Network.Smartcard
    Assembly:
    Tizen.Network.Smartcard.dll

    The class for the Smartcard session information. It allows applications to handle the session information.

    public class SmartcardSession : IDisposable
    Inheritance
    object
    SmartcardSession
    Implements
    System.IDisposable

    Properties

    View Source

    Atr

    The Answer to Reset (ATR) of this secure element.

    Declaration
    public byte[] Atr { get; }
    Property Value
    Type Description
    byte[]
    View Source

    IsClosed

    Whether the session is closed.

    Declaration
    public bool IsClosed { get; }
    Property Value
    Type Description
    bool
    View Source

    Reader

    The reader object that provides the given session.

    Declaration
    public SmartcardReader Reader { get; }
    Property Value
    Type Description
    SmartcardReader

    Methods

    View Source

    Close()

    Closes the connection with the secure element.

    Declaration
    public void Close()
    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the Smartcard is not supported.

    System.InvalidOperationException

    Thrown when the method failed due to invalid operation.

    View Source

    CloseChannels()

    Closes any channel opened on the given session.

    Declaration
    public void CloseChannels()
    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the Smartcard is not supported.

    System.InvalidOperationException

    Thrown when the method failed due to an invalid operation.

    View Source

    Dispose()

    Dispose

    Declaration
    public void Dispose()
    View Source

    ~SmartcardSession()

    SmartcardSession destructor.

    Declaration
    protected ~SmartcardSession()
    View Source

    OpenBasicChannel(byte[], byte)

    Gets an access to the basic channel, as defined in the ISO/IEC 7816-4 specification (the one that has number 0).

    Declaration
    public SmartcardChannel OpenBasicChannel(byte[] aid, byte p2)
    Parameters
    Type Name Description
    byte[] aid

    The byte array containing the Application ID(AID) to be selected on the given channel.

    byte p2

    P2 byte of the SELECT command if executed.

    Returns
    Type Description
    SmartcardChannel

    The SmartcardChannel object for the basic channel.

    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the Smartcard is not supported.

    System.InvalidOperationException

    Thrown when the method failed due to invalid operation.

    View Source

    OpenLogicalChannel(byte[], byte)

    Open a logical channel with the secure element, selecting the Applet represented by the given application ID (AID).

    Declaration
    public SmartcardChannel OpenLogicalChannel(byte[] aid, byte p2)
    Parameters
    Type Name Description
    byte[] aid

    The byte array containing the Application ID(AID) to be selected on the given channel.

    byte p2

    P2 byte of the SELECT command if executed.

    Returns
    Type Description
    SmartcardChannel

    The SmartcardChannel object for the logical channel.

    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the Smartcard is not supported.

    System.InvalidOperationException

    Thrown when the method failed due to an invalid operation.

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX