Skip to content

Commit

Permalink
Added javadoc to UserPasswordCredential and made UserPasswordCredenti…
Browse files Browse the repository at this point in the history
…alImpl package-private.

[resolves r2dbc#273]

Signed-off-by: calebcodesgud <[email protected]>
  • Loading branch information
calebcodesgud committed Sep 8, 2022
1 parent 9ce228d commit 2b09f64
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions r2dbc-spi/src/main/java/io/r2dbc/spi/UserPasswordCredential.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
* UserPasswordCredentials used to authenticate with a database.
*/
public interface UserPasswordCredential extends Credential {

/**
* Returns the user of the {@link UserPasswordCredential}.
*
* @return the user of the {@link UserPasswordCredential}.
*/
String user();

/**
* Returns the password of the {@link UserPasswordCredential}.
*
* @return the password of the {@link UserPasswordCredential}.
*/
CharSequence password();
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.r2dbc.spi;

public class UserPasswordCredentialImpl implements UserPasswordCredential {
class UserPasswordCredentialImpl implements UserPasswordCredential {

private String user;

Expand Down

0 comments on commit 2b09f64

Please sign in to comment.