Skip to content

Commit

Permalink
DSS-2764: Change OID in the system test
Browse files Browse the repository at this point in the history
  • Loading branch information
nimas committed Apr 16, 2024
1 parent 21685d1 commit 993e7cb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ public void test09HashWithNotAllowedAlgorithm() throws Exception {
}

/**
* Test request a timestamp using a made-up dummy hash algorithm name
* Test request a timestamp using RSA OID for hash algorithm
*/
@Test
public void test10HashWithIllegalAlgorithm() throws Exception {
Expand All @@ -635,9 +635,9 @@ public void test10HashWithIllegalAlgorithm() throws Exception {
workerSession.removeWorkerProperty(WORKER1.getId(), TimeStampSigner.ACCEPTEDALGORITHMS);
workerSession.reloadConfiguration(WORKER1.getId());

// Dummy OID used for testing an invalid hashing algorithm
String DUMMY_OID = "1.42.42.42.42";
ASN1ObjectIdentifier oid = new ASN1ObjectIdentifier(DUMMY_OID);
// RSA OID used for testing an invalid hashing algorithm
String RSA_OID = "1.3.112.4.1.66";
ASN1ObjectIdentifier oid = new ASN1ObjectIdentifier(RSA_OID);
int status = testWithHash(oid, null, true);

assertEquals("Should not accept an invalid hash algorithm", PKIStatus.REJECTION, status);
Expand Down

0 comments on commit 993e7cb

Please sign in to comment.