Skip to content

Commit df1a028

Browse files
committed
Code review
1 parent 32d258a commit df1a028

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

api/src/main/java/com/inrupt/client/auth/ReactiveAuthorization.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
/**
4545
* A class for negotiating for a supported {@link AuthenticationProvider} based on the {@code WWW-Authenticate}
4646
* headers received from a resource server.
47+
*
48+
* <p>In general, any authorization mechanism loaded via the {@link ServiceLoader} will be available for use
49+
* during the challenge-response negotiation with a server. There are, however, certain known weak mechanisms
50+
* such as Basic auth and Digest auth that are explicitly excluded.
4751
*/
4852
public class ReactiveAuthorization {
4953

@@ -60,6 +64,8 @@ public class ReactiveAuthorization {
6064
/**
6165
* Create a new authorization handler, loading any {@link AuthenticationProvider} implementations
6266
* via the {@link ServiceLoader}.
67+
*
68+
* <p>Known weak authorization mechanisms such as {@code Basic} and {@code Digest} are explicitly omitted.
6369
*/
6470
public ReactiveAuthorization() {
6571
final ServiceLoader<AuthenticationProvider> loader = ServiceLoader.load(AuthenticationProvider.class,

api/src/main/java/com/inrupt/client/spi/AuthenticationProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727

2828
/**
2929
* An authentication mechanism that knows how to authenticate over network connections.
30+
*
31+
* <p>Please note that the {@link com.inrupt.client.auth.ReactiveAuthorization} class
32+
* explicitly prohibits the use of {@code Basic} and {@code Digest} authorization schemes.
3033
*/
3134
public interface AuthenticationProvider {
3235

0 commit comments

Comments
 (0)