MCPcopy Index your code
hub / github.com/apache/tomcat / parseFullLength

Method parseFullLength

java/org/apache/tomcat/util/buf/Asn1Parser.java:146–152  ·  view source on GitHub ↗

Validates that the remaining data matches the parsed length.

()

Source from the content-addressed store, hash-verified

144 * Validates that the remaining data matches the parsed length.
145 */
146 public void parseFullLength() {
147 int len = parseLength();
148 if (source.length - pos != len) {
149 throw new IllegalArgumentException(sm.getString("asn1Parser.lengthInvalid", Integer.valueOf(len),
150 Integer.valueOf(source.length - pos)));
151 }
152 }
153
154
155 /**

Callers 4

toPrivateKeyMethod · 0.95
rfc5915ToPkcs8Method · 0.95
parsePKCS1Method · 0.95
parseOCSPURLsMethod · 0.80

Calls 3

parseLengthMethod · 0.95
getStringMethod · 0.65
valueOfMethod · 0.45

Tested by

no test coverage detected