Skip to content

Commit c38b06e

Browse files
committed
improved jdoc
1 parent 130a5af commit c38b06e

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/main/java/org/htmlunit/javascript/host/crypto/SubtleCrypto.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,17 @@ public class SubtleCrypto extends HtmlUnitScriptable {
9494
);
9595

9696
/**
97+
* The recognized cryptographic key usages.
98+
*
9799
* @see <a href="https://w3c.github.io/webcrypto/#dfn-RecognizedKeyUsage">RecognizedKeyUsage</a>
98100
*/
99101
private static final Set<String> RECOGNIZED_KEY_USAGES = Collections.unmodifiableSet(
100102
new LinkedHashSet<>(List.of("encrypt", "decrypt", "sign", "verify",
101103
"deriveKey", "deriveBits", "wrapKey", "unwrapKey")));
102104

103105
/**
106+
* The valid authentication tag lengths for AES-GCM, in bits.
107+
*
104108
* @see <a href="https://w3c.github.io/webcrypto/#aes-gcm-operations">AES-GCM encrypt, step 6</a>
105109
*/
106110
private static final Set<Integer> VALID_AES_GCM_TAG_LENGTHS = Set.of(32, 64, 96, 104, 112, 120, 128);

src/main/java/org/htmlunit/javascript/host/css/ComputedFont.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ static String[] getDetails(final String font) {
5555
}
5656

5757
/**
58-
* @return an array of {@code fontSize} and {@code lineHeight}, or {@code null} if invalid
58+
* Parses the specified font-size value into its font size and line height components.
59+
*
60+
* @param fontSize the font-size value to parse
61+
* @return an array containing the font size and line height, or {@code null}
62+
* if the value is invalid
5963
*/
6064
private static String[] getFontSizeDetails(final String fontSize) {
6165
final int slash = fontSize.indexOf('/');

0 commit comments

Comments
 (0)