Changeset 2506bdb in terepaima for signHash/cryptotoken.h


Ignore:
Timestamp:
Oct 4, 2017, 4:08:55 PM (7 years ago)
Author:
Antonio Araujo <aaraujo@…>
Branches:
master
Children:
2aa151c
Parents:
ce57b45
Message:

Agreadas funciones para obtener información de los certificados firmantes que se encuentran en un dispositivo criptográfico.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • signHash/cryptotoken.h

    rce57b45 r2506bdb  
    7878
    7979
    80     std::vector<CK_OBJECT_HANDLE> findObject(CK_OBJECT_CLASS objectClass, CK_ULONG max) const;
     80    //std::vector<CK_OBJECT_HANDLE> findObject(CK_OBJECT_CLASS objectClass, CK_ULONG max) const;
    8181
    8282    /**
    83      * @brief Returns a list of key labels
     83     * @brief Returns a list of private key labels
    8484     *
    8585     * @param pin pin of the cryptographic device
     
    8787     */
    8888    QStringList getPrivateKeyLabels(QString pin);
     89
     90    /**
     91     * @brief get label of the key
     92     * @param hSession session handle
     93     * @param key key handle
     94     * @return key label as QString
     95     */
     96    QString getKeyLabel(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE key);
     97
     98    /**
     99     * @brief get certificate information bound to the key
     100     * @param hSession session handle
     101     * @param key key handle
     102     * @return QStringList with commonName and expiration date
     103     */
     104    QStringList getCertificateInformation(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE certificate);
     105
     106    /**
     107     * @brief Get information of commonName and expiration date of certificates inside the device
     108     * @param pin pin of the device
     109     * @return list of QStringList with <commnonName,expirationDate>
     110     */
     111    QList<QStringList> getCertificateCNandExpirationDate(QString pin);
     112
     113    /**
     114     * @brief Returns information about device's certificates.
     115     *
     116     * @param pin pin of the device
     117     * @return QList<QStringList> of information about certificate: <key label, commonName, expiration date>
     118     */
     119    QList<QStringList> getDeviceCertificates(QString pin);
     120
     121
     122    void getCertificateAttributes(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hCert);
     123
     124
     125
    89126
    90127    /**
Note: See TracChangeset for help on using the changeset viewer.