Search in sources :

Example 6 with DSIReadResponse

use of iso.std.iso_iec._24727.tech.schema.DSIReadResponse in project open-ecard by ecsec.

the class DataSetInfo method read.

public byte[] read() throws WSHelper.WSException {
    if (cachedData == null) {
        select();
        DSIRead req = new DSIRead();
        req.setConnectionHandle(didInfos.getHandle(application));
        req.setDSIName(datasetNameTarget.getDataSetName());
        DSIReadResponse res = (DSIReadResponse) didInfos.getDispatcher().safeDeliver(req);
        WSHelper.checkResult(res);
        cachedData = res.getDSIContent();
    }
    // copy to be safe from cache manipulation
    return ByteUtils.clone(cachedData);
}
Also used : DSIRead(iso.std.iso_iec._24727.tech.schema.DSIRead) DSIReadResponse(iso.std.iso_iec._24727.tech.schema.DSIReadResponse)

Aggregations

DSIReadResponse (iso.std.iso_iec._24727.tech.schema.DSIReadResponse)6 DSIRead (iso.std.iso_iec._24727.tech.schema.DSIRead)4 CardApplicationPathType (iso.std.iso_iec._24727.tech.schema.CardApplicationPathType)3 ConnectionHandleType (iso.std.iso_iec._24727.tech.schema.ConnectionHandleType)3 ECardException (org.openecard.common.ECardException)3 IncorrectParameterException (org.openecard.common.sal.exception.IncorrectParameterException)3 CardApplicationConnect (iso.std.iso_iec._24727.tech.schema.CardApplicationConnect)2 CardApplicationConnectResponse (iso.std.iso_iec._24727.tech.schema.CardApplicationConnectResponse)2 CardApplicationPath (iso.std.iso_iec._24727.tech.schema.CardApplicationPath)2 CardApplicationPathResponse (iso.std.iso_iec._24727.tech.schema.CardApplicationPathResponse)2 DIDGetResponse (iso.std.iso_iec._24727.tech.schema.DIDGetResponse)2 DIDList (iso.std.iso_iec._24727.tech.schema.DIDList)2 ByteArrayInputStream (java.io.ByteArrayInputStream)2 Certificate (java.security.cert.Certificate)2 X509Certificate (java.security.cert.X509Certificate)2 BouncyCastleProvider (org.openecard.bouncycastle.jce.provider.BouncyCastleProvider)2 ThreadTerminateException (org.openecard.common.ThreadTerminateException)2 CardStateEntry (org.openecard.common.sal.state.CardStateEntry)2 ACLList (iso.std.iso_iec._24727.tech.schema.ACLList)1 CardApplicationList (iso.std.iso_iec._24727.tech.schema.CardApplicationList)1