Search in sources :

Example 6 with HashResponse

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

the class GenericCryptographyProtocolTest method testHash.

@Test(enabled = TESTS_ENABLED)
public void testHash() {
    // TODO write test as soon as implemented
    HashResponse resp = instance.hash(new Hash());
    assertEquals(resp.getResult().getResultMajor(), ECardConstants.Major.ERROR);
}
Also used : HashResponse(iso.std.iso_iec._24727.tech.schema.HashResponse) Hash(iso.std.iso_iec._24727.tech.schema.Hash) Test(org.testng.annotations.Test)

Aggregations

HashResponse (iso.std.iso_iec._24727.tech.schema.HashResponse)6 Hash (iso.std.iso_iec._24727.tech.schema.Hash)3 ConnectionHandleType (iso.std.iso_iec._24727.tech.schema.ConnectionHandleType)2 DIDStructureType (iso.std.iso_iec._24727.tech.schema.DIDStructureType)2 ECardException (org.openecard.common.ECardException)2 CardStateEntry (org.openecard.common.sal.state.CardStateEntry)2 Test (org.testng.annotations.Test)2 DIDScopeType (iso.std.iso_iec._24727.tech.schema.DIDScopeType)1 HashGenerationInfoType (iso.std.iso_iec._24727.tech.schema.HashGenerationInfoType)1 MessageDigest (java.security.MessageDigest)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 AddonNotFoundException (org.openecard.addon.AddonNotFoundException)1 SALProtocol (org.openecard.addon.sal.SALProtocol)1 ThreadTerminateException (org.openecard.common.ThreadTerminateException)1 Publish (org.openecard.common.interfaces.Publish)1 InappropriateProtocolForActionException (org.openecard.common.sal.exception.InappropriateProtocolForActionException)1 IncorrectParameterException (org.openecard.common.sal.exception.IncorrectParameterException)1 NameExistsException (org.openecard.common.sal.exception.NameExistsException)1 NamedEntityNotFoundException (org.openecard.common.sal.exception.NamedEntityNotFoundException)1 PrerequisitesNotSatisfiedException (org.openecard.common.sal.exception.PrerequisitesNotSatisfiedException)1