Search in sources :

Example 51 with CardStateEntry

use of org.openecard.common.sal.state.CardStateEntry in project open-ecard by ecsec.

the class StatusHandler method getCardHandles.

@Nonnull
private List<ConnectionHandleType> getCardHandles() {
    ConnectionHandleType handle = new ConnectionHandleType();
    Set<CardStateEntry> entries = cardStates.getMatchingEntries(handle, false);
    ArrayList<ConnectionHandleType> result = new ArrayList<>(entries.size());
    for (CardStateEntry entry : entries) {
        result.add(entry.handleCopy());
    }
    return result;
}
Also used : ConnectionHandleType(iso.std.iso_iec._24727.tech.schema.ConnectionHandleType) CardStateEntry(org.openecard.common.sal.state.CardStateEntry) ArrayList(java.util.ArrayList) Nonnull(javax.annotation.Nonnull)

Aggregations

CardStateEntry (org.openecard.common.sal.state.CardStateEntry)51 ConnectionHandleType (iso.std.iso_iec._24727.tech.schema.ConnectionHandleType)47 ECardException (org.openecard.common.ECardException)40 IncorrectParameterException (org.openecard.common.sal.exception.IncorrectParameterException)35 UnknownProtocolException (org.openecard.common.sal.exception.UnknownProtocolException)32 ThreadTerminateException (org.openecard.common.ThreadTerminateException)31 NamedEntityNotFoundException (org.openecard.common.sal.exception.NamedEntityNotFoundException)31 AddonNotFoundException (org.openecard.addon.AddonNotFoundException)27 TLVException (org.openecard.common.tlv.TLVException)27 InappropriateProtocolForActionException (org.openecard.common.sal.exception.InappropriateProtocolForActionException)26 NameExistsException (org.openecard.common.sal.exception.NameExistsException)26 PrerequisitesNotSatisfiedException (org.openecard.common.sal.exception.PrerequisitesNotSatisfiedException)26 SecurityConditionNotSatisfiedException (org.openecard.common.sal.exception.SecurityConditionNotSatisfiedException)26 UnknownConnectionHandleException (org.openecard.common.sal.exception.UnknownConnectionHandleException)26 DIDStructureType (iso.std.iso_iec._24727.tech.schema.DIDStructureType)20 Publish (org.openecard.common.interfaces.Publish)16 CardInfoWrapper (org.openecard.common.sal.state.cif.CardInfoWrapper)14 SALProtocol (org.openecard.addon.sal.SALProtocol)12 DataSetInfoType (iso.std.iso_iec._24727.tech.schema.DataSetInfoType)9 DIDScopeType (iso.std.iso_iec._24727.tech.schema.DIDScopeType)7