Set the maximum length of a certification path.
This is the maximum number of non-self-signed certificates in a
certification path.
if (maxPathLength < -1) {
throw new InvalidParameterException(
Messages.getString("security.5B")); //$NON-NLS-1$
}
this.maxPathLength = maxPathLength;