3434 *
3535 * <p>DNSSEC provides authentication for DNS information.
3636 *
37+ * @author Brian Wellington
3738 * @see RRSIGRecord
3839 * @see DNSKEYRecord
3940 * @see RRset
40- * @author Brian Wellington
4141 */
4242public class DNSSEC {
4343 /** Domain Name System Security (DNSSEC) Algorithm Numbers. */
@@ -350,12 +350,12 @@ public static class SignatureExpiredException extends DNSSECException {
350350 this .now = now ;
351351 }
352352
353- /** @return When the signature expired */
353+ /** When the signature expired. */
354354 public Instant getExpiration () {
355355 return when ;
356356 }
357357
358- /** @return When the verification was attempted */
358+ /** When the verification was attempted. */
359359 public Instant getVerifyTime () {
360360 return now ;
361361 }
@@ -372,12 +372,12 @@ public static class SignatureNotYetValidException extends DNSSECException {
372372 this .now = now ;
373373 }
374374
375- /** @return When the signature will become valid */
375+ /** When the signature will become valid. */
376376 public Instant getExpiration () {
377377 return when ;
378378 }
379379
380- /** @return When the verification was attempted */
380+ /** When the verification was attempted. */
381381 public Instant getVerifyTime () {
382382 return now ;
383383 }
@@ -1118,10 +1118,10 @@ static void checkAlgorithm(PrivateKey key, int alg) throws UnsupportedAlgorithmE
11181118 * @param privkey The PrivateKey to use when signing
11191119 * @param inception The time at which the signatures should become valid
11201120 * @param expiration The time at which the signatures should expire
1121+ * @return The generated signature
11211122 * @throws UnsupportedAlgorithmException The algorithm is unknown
11221123 * @throws MalformedKeyException The key is malformed
11231124 * @throws DNSSECException Some other error occurred.
1124- * @return The generated signature
11251125 * @deprecated use {@link #sign(RRset, DNSKEYRecord, PrivateKey, Instant, Instant)}
11261126 */
11271127 @ Deprecated
@@ -1140,10 +1140,10 @@ public static RRSIGRecord sign(
11401140 * @param privkey The PrivateKey to use when signing
11411141 * @param inception The time at which the signatures should become valid
11421142 * @param expiration The time at which the signatures should expire
1143+ * @return The generated signature
11431144 * @throws UnsupportedAlgorithmException The algorithm is unknown
11441145 * @throws MalformedKeyException The key is malformed
11451146 * @throws DNSSECException Some other error occurred.
1146- * @return The generated signature
11471147 * @deprecated use {@link #sign(RRset, DNSKEYRecord, PrivateKey, Instant, Instant, String)}
11481148 */
11491149 @ Deprecated
@@ -1167,10 +1167,10 @@ public static RRSIGRecord sign(
11671167 * @param privkey The PrivateKey to use when signing
11681168 * @param inception The time at which the signatures should become valid
11691169 * @param expiration The time at which the signatures should expire
1170+ * @return The generated signature
11701171 * @throws UnsupportedAlgorithmException The algorithm is unknown
11711172 * @throws MalformedKeyException The key is malformed
11721173 * @throws DNSSECException Some other error occurred.
1173- * @return The generated signature
11741174 */
11751175 public static RRSIGRecord sign (
11761176 RRset rrset , DNSKEYRecord key , PrivateKey privkey , Instant inception , Instant expiration )
@@ -1189,10 +1189,10 @@ public static RRSIGRecord sign(
11891189 * @param expiration The time at which the signatures should expire
11901190 * @param provider The name of the JCA provider. If non-null, it will be passed to JCA
11911191 * getInstance() methods.
1192+ * @return The generated signature
11921193 * @throws UnsupportedAlgorithmException The algorithm is unknown
11931194 * @throws MalformedKeyException The key is malformed
11941195 * @throws DNSSECException Some other error occurred.
1195- * @return The generated signature
11961196 */
11971197 public static RRSIGRecord sign (
11981198 RRset rrset ,
0 commit comments