diff --git a/.classpath b/.classpath
index 0856823..39abf1c 100644
--- a/.classpath
+++ b/.classpath
@@ -18,7 +18,7 @@
-
+
diff --git a/.gitignore b/.gitignore
index a26e362..fd8e5b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,3 +24,6 @@ buildNumber.properties
# VSCode debug stuff
.vscode
+
+# Mac garbage
+.DS_Store
diff --git a/pom.xml b/pom.xml
index 34a861d..96be610 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,11 +5,11 @@
com.stack.security.auth.AWS
kafka-auth-aws-iam
- 1.0-SNAPSHOT
+ 0.2.0
jar
- 12
- 12
+ 8
+ 8
Kafka AWS IAM LoginModule
https://github.com/STACK-Fintech
@@ -59,6 +59,24 @@
+
+ maven-assembly-plugin
+ 3.1.1
+
+
+ jar-with-dependencies
+
+
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
org.apache.maven.plugins
maven-surefire-plugin
diff --git a/src/main/java/com/stack/security/auth/aws/AwsIamAuthenticateCallback.java b/src/main/java/com/stack/security/auth/aws/AwsIamAuthenticateCallback.java
index e191d18..2e4f274 100644
--- a/src/main/java/com/stack/security/auth/aws/AwsIamAuthenticateCallback.java
+++ b/src/main/java/com/stack/security/auth/aws/AwsIamAuthenticateCallback.java
@@ -3,7 +3,7 @@
import javax.security.auth.callback.Callback;
/*
- * Authentication callback for SASL/AWS-IAM authentication. Callback handler must
+ * Authentication callback for SASL/AWS authentication. Callback handler must
* set authenticated flag to true if the client provided password in the callback
* matches the expected password.
*/
@@ -17,11 +17,11 @@ public class AwsIamAuthenticateCallback implements Callback {
* Creates a callback with the password provided by the client
*
* @param accessKeyId The AWS Access Key ID provided by the client during
- * SASL/PLAIN authentication
+ * SASL/AWS authentication
* @param secretAccessKey The AWS Secret Access Key provided by the client
- * during SASL/PLAIN authentication
+ * during SASL/AWS authentication
* @param sessionToken The AWS Session Token provided by the client during
- * SASL/PLAIN authentication
+ * SASL/AWS authentication
* @return
*/
public AwsIamAuthenticateCallback(char[] accessKeyId, char[] secretAccessKey, char[] sessionToken) {
@@ -31,21 +31,21 @@ public AwsIamAuthenticateCallback(char[] accessKeyId, char[] secretAccessKey, ch
}
/**
- * Returns the AWS Access Key ID provided by the client during SASL/AWS-IAM
+ * Returns the AWS Access Key ID provided by the client during SASL/AWS
*/
public char[] accessKeyId() {
return accessKeyId;
}
/**
- * Returns the AWS Secret Access Key provided by the client during SASL/AWS-IAM
+ * Returns the AWS Secret Access Key provided by the client during SASL/AWS
*/
public char[] secretAccessKey() {
return secretAccessKey;
}
/**
- * Returns the AWS Session Token provided by the client during SASL/AWS-IAM
+ * Returns the AWS Session Token provided by the client during SASL/AWS
*/
public char[] sessionToken() {
return sessionToken;
diff --git a/src/main/java/com/stack/security/auth/aws/AwsIamLoginModule.java b/src/main/java/com/stack/security/auth/aws/AwsIamLoginModule.java
index 0c54dc5..9bf6a3f 100644
--- a/src/main/java/com/stack/security/auth/aws/AwsIamLoginModule.java
+++ b/src/main/java/com/stack/security/auth/aws/AwsIamLoginModule.java
@@ -1,6 +1,7 @@
package com.stack.security.auth.aws;
import java.util.Map;
+import java.util.Set;
import javax.security.auth.Subject;
import javax.security.auth.callback.CallbackHandler;
@@ -23,8 +24,8 @@ public class AwsIamLoginModule implements LoginModule {
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState,
Map options) {
- var publicCredentials = subject.getPublicCredentials();
- var privateCredentials = subject.getPrivateCredentials();
+ Set