From 4276d70d2dc448fcd873445760c9f32c665b405d Mon Sep 17 00:00:00 2001 From: arthenice Date: Sun, 9 Feb 2025 19:12:34 +0100 Subject: [PATCH] docs: fix invalid Javadoc syntax The Javadoc contained invalid syntax for links. Some code elements were not closed. Signed-off-by: arthenice --- .../apache/shiro/authc/credential/CredentialsMatcher.java | 2 -- .../shiro/authc/credential/HashedCredentialsMatcher.java | 7 +++---- .../java/org/apache/shiro/authz/AuthorizationInfo.java | 2 +- .../org/apache/shiro/authz/ModularRealmAuthorizer.java | 8 ++++---- .../main/java/org/apache/shiro/realm/ldap/LdapUtils.java | 4 ++-- .../java/org/apache/shiro/session/mgt/eis/SessionDAO.java | 2 +- core/src/main/java/org/apache/shiro/subject/Subject.java | 2 +- .../main/java/org/apache/shiro/util/JavaEnvironment.java | 2 +- 8 files changed, 13 insertions(+), 16 deletions(-) diff --git a/core/src/main/java/org/apache/shiro/authc/credential/CredentialsMatcher.java b/core/src/main/java/org/apache/shiro/authc/credential/CredentialsMatcher.java index 89c9dd93c7..4e6a525b2f 100644 --- a/core/src/main/java/org/apache/shiro/authc/credential/CredentialsMatcher.java +++ b/core/src/main/java/org/apache/shiro/authc/credential/CredentialsMatcher.java @@ -33,8 +33,6 @@ * * @see SimpleCredentialsMatcher * @see AllowAllCredentialsMatcher - * @see Md5CredentialsMatcher - * @see Sha1CredentialsMatcher * @since 0.1 */ public interface CredentialsMatcher { diff --git a/core/src/main/java/org/apache/shiro/authc/credential/HashedCredentialsMatcher.java b/core/src/main/java/org/apache/shiro/authc/credential/HashedCredentialsMatcher.java index f735f9ad2f..262101cdca 100644 --- a/core/src/main/java/org/apache/shiro/authc/credential/HashedCredentialsMatcher.java +++ b/core/src/main/java/org/apache/shiro/authc/credential/HashedCredentialsMatcher.java @@ -49,7 +49,7 @@ *

Salting and Multiple Hash Iterations

* Because simple hashing is usually not good enough for secure applications, this class also supports 'salting' * and multiple hash iterations. Please read this excellent - * Hashing Java article to learn about + * Hashing Java article to learn about * salting and multiple iterations and why you might want to use them. (Note of sections 5 * "Why add salt?" and 6 "Hardening against the attacker's attack").

*

Real World Case Study

@@ -100,9 +100,8 @@ *

Multiple Hash Iterations

* If you hash your users' credentials multiple times before persisting to the data store, you will also need to * set this class's {@link #setHashIterations(int) hashIterations} property. See the - * Hashing Java article's - * - * "Hardening against the attacker's attack" section to learn more about why you might want to use + * Hashing Java article's + * "Hardening against the attacker's attack" section to learn more about why you might want to use * multiple hash iterations. *

MD5 & SHA-1 Notice

* MD5 and diff --git a/core/src/main/java/org/apache/shiro/authz/AuthorizationInfo.java b/core/src/main/java/org/apache/shiro/authz/AuthorizationInfo.java index 0efdd96501..7728e62b2e 100644 --- a/core/src/main/java/org/apache/shiro/authz/AuthorizationInfo.java +++ b/core/src/main/java/org/apache/shiro/authz/AuthorizationInfo.java @@ -26,7 +26,7 @@ * used during authorization (access control) checks only. *

* Roles are represented as a Collection of Strings - * ({@link java.util.Collection Collection}<{@link String String}>), typically each element being the Role name. + * ({@link java.util.Collection Collection}<{@link String String}>), typically each element being the Role name. *

* {@link Permission Permission}s are provided in two ways: *