static int mergeBasicConstraints ( X509Certificate cert , int maxPathLength ) { int pathLenConstraint = cert . getBasicConstraints ( ) ; if ( ! X509CertImpl . isSelfIssued ( cert ) ) { maxPathLength -- ; } if ( pathLenConstraint < maxPathLength ) { maxPathLength = pathLenConstraint ; } return maxPathLength ; }
Merges the specified maxPathLength with the pathLenConstraint obtained from the certificate .