Home
last modified time | relevance | path

Searched refs:maxPathLength (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/security/cert/
DPKIXBuilderParameters.java80 private int maxPathLength = 5; field in PKIXBuilderParameters
164 public void setMaxPathLength(int maxPathLength) { in setMaxPathLength() argument
165 if (maxPathLength < -1) { in setMaxPathLength()
169 this.maxPathLength = maxPathLength; in setMaxPathLength()
183 return maxPathLength; in getMaxPathLength()
195 sb.append(" Maximum Path Length: " + maxPathLength + "\n"); in toString()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DConstraintsChecker.java59 private int maxPathLength; field in ConstraintsChecker
79 maxPathLength = certPathLength; in init()
229 ", maxPathLength = " + maxPathLength); in checkBasicConstraints()
265 if (maxPathLength <= 0) { in checkBasicConstraints()
272 maxPathLength--; in checkBasicConstraints()
274 if (pathLenConstraint < maxPathLength) in checkBasicConstraints()
275 maxPathLength = pathLenConstraint; in checkBasicConstraints()
279 debug.println("after processing, maxPathLength = " + maxPathLength); in checkBasicConstraints()
294 static int mergeBasicConstraints(X509Certificate cert, int maxPathLength) { in mergeBasicConstraints() argument
299 maxPathLength--; in mergeBasicConstraints()
[all …]
DPKIX.java226 int maxPathLength() { return params.getMaxPathLength(); } in maxPathLength() method in PKIX.BuilderParams
DForwardBuilder.java323 (buildParams.maxPathLength() == -1) || in getMatchingCACerts()
324 (buildParams.maxPathLength() > currentState.traversedCACerts)) in getMatchingCACerts()
/libcore/luni/src/test/java/tests/security/cert/
DPKIXBuilderParametersTest.java323 int[] maxPathLength = {-2, -10, Integer.MIN_VALUE}; in testSetMaxPathLength() local
324 for (int i = 0; i < maxPathLength.length; i++) { in testSetMaxPathLength()
326 p.setMaxPathLength(maxPathLength[i]); in testSetMaxPathLength()