Class IsoCredentialStore


  • public class IsoCredentialStore
    extends CredentialStore
    Class implementing a credential store for secure channel credentials Secure channel credentials are stored with the file path and access mode as index
    Author:
    Andreas Schwier (info@cardcontact.de)
    • Constructor Detail

      • IsoCredentialStore

        public IsoCredentialStore()
    • Method Detail

      • supports

        public boolean supports​(CardID cardID)
        Generic store that supports any card
        Specified by:
        supports in class CredentialStore
        Parameters:
        cardID - the ATR of the smartcard to test for
        Returns:
        true if the card is supported, false otherwise
      • setSecureChannelCredential

        public void setSecureChannelCredential​(SecurityDomain sd,
                                               SecureChannelCredential scc)
        Set secure channel credential for a security domain
        Parameters:
        sd - Security domain (usually a CardFilePath object)
        scc - Secure channel credential for this domain
      • getSecureChannelCredential

        public SecureChannelCredential getSecureChannelCredential​(SecurityDomain sd)
        Return the credentials defined for a specific security domain
        Parameters:
        sd - Security domain (usually a CardFilePath object)
        Returns:
        Secure channel credential for this domain
      • getSecureChannelCredential

        public SecureChannelCredential getSecureChannelCredential​(SecurityDomain sd,
                                                                  int accessMode)
        Get a secure channel credential for a specified security domain and access mode
        Parameters:
        sd - Security domain (usually a CardFilePath object)
        accessMode - Access mode, one of SELECT, READ, UPDATE, APPEND
        Returns:
        Secure channel credential or null if none defined
      • setSecureChannelCredential

        public void setSecureChannelCredential​(SecurityDomain sd,
                                               int accessMode,
                                               SecureChannelCredential scc)
        Set a secure channel credential for a specified security domain and access mode
        Parameters:
        sd - Security domain (usually a CardFilePath object)
        accessMode - Access mode, one of SELECT, READ, UPDATE, APPEND
        scc - Secure channel credential