@@ -113,27 +113,27 @@ public SecretKeySpec(byte[] key, String algorithm) {
113
113
114
114
/**
115
115
* Constructs a secret key from the given byte array, using the first
116
- * < code> len</code> bytes of < code> key</code> , starting at
117
- * < code> offset</code> inclusive.
116
+ * {@ code len} bytes of {@ code key} , starting at
117
+ * {@ code offset} inclusive.
118
118
*
119
119
* <p> The bytes that constitute the secret key are
120
- * those between < code> key[offset]</code> and
121
- * < code> key[offset+len-1]</code> inclusive.
120
+ * those between {@ code key[offset]} and
121
+ * {@ code key[offset+len-1]} inclusive.
122
122
*
123
123
* <p>This constructor does not check if the given bytes indeed specify a
124
124
* secret key of the specified algorithm. For example, if the algorithm is
125
- * DES, this constructor does not check if < code> key</code> is 8 bytes
125
+ * DES, this constructor does not check if {@ code key} is 8 bytes
126
126
* long, and also does not check for weak or semi-weak keys.
127
127
* In order for those checks to be performed, an algorithm-specific key
128
128
* specification class (in this case:
129
129
* {@link DESKeySpec DESKeySpec})
130
130
* must be used.
131
131
*
132
132
* @param key the key material of the secret key. The first
133
- * < code> len</code> bytes of the array beginning at
134
- * < code> offset</code> inclusive are copied to protect
133
+ * {@ code len} bytes of the array beginning at
134
+ * {@ code offset} inclusive are copied to protect
135
135
* against subsequent modification.
136
- * @param offset the offset in < code> key</code> where the key material
136
+ * @param offset the offset in {@ code key} where the key material
137
137
* starts.
138
138
* @param len the length of the key material.
139
139
* @param algorithm the name of the secret key algorithm to be associated
@@ -142,12 +142,11 @@ public SecretKeySpec(byte[] key, String algorithm) {
142
142
* <a href="{@docRoot}/../specs/security/standard-names.html#secretkey-algorithms">
143
143
* Java Security Standard Algorithm Names Specification</a>
144
144
* for information about standard secret key algorithm names.
145
- * @exception IllegalArgumentException if < code> algorithm</code>
146
- * is null or < code> key</code> is null, empty, or too short,
145
+ * @exception IllegalArgumentException if {@ code algorithm}
146
+ * is {@code null} or {@ code key} is {@code null} , empty, or too short,
147
147
* i.e. {@code key.length-offset<len}.
148
- * @exception ArrayIndexOutOfBoundsException is thrown if
149
- * <code>offset</code> or <code>len</code> index bytes outside the
150
- * <code>key</code>.
148
+ * @exception ArrayIndexOutOfBoundsException if
149
+ * {@code offset} or {@code len} are negative.
151
150
*
152
151
* @spec security/standard-names.html Java Security Standard Algorithm Names
153
152
*/
0 commit comments