We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ce0d4d commit e761671Copy full SHA for e761671
pkix/src/main/java/org/bouncycastle/tsp/TimeStampRequest.java
@@ -152,6 +152,11 @@ public void validate(
152
policies = convert(policies);
153
extensions = convert(extensions);
154
155
+ if (algorithms == null)
156
+ {
157
+ throw new TSPValidationException("no algorithms associated with request", PKIFailureInfo.badAlg);
158
+ }
159
+
160
if (!algorithms.contains(this.getMessageImprintAlgOID()))
161
{
162
throw new TSPValidationException("request contains unknown algorithm", PKIFailureInfo.badAlg);
0 commit comments