Skip to content

Commit

Permalink
fix: Make JaasPrincipal public (#8567)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrrr authored Jan 7, 2022
1 parent f82ec0c commit 8da7fe5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@

/**
* Principal implementation created when authenticating with the JaasAuthProvider
* <p>
* This class and its constructor are public to make them accessible from pluggable security
* extensions.
* </p>
*/
class JaasPrincipal implements KsqlPrincipal {
public class JaasPrincipal implements KsqlPrincipal {

private final String name;
private final String token;

JaasPrincipal(final String name, final String password) {
public JaasPrincipal(final String name, final String password) {
this.name = Objects.requireNonNull(name, "name");
this.token = createToken(name, Objects.requireNonNull(password));
}
Expand Down

0 comments on commit 8da7fe5

Please sign in to comment.