Skip to content

Commit

Permalink
Fixes Spotless errors
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
  • Loading branch information
DarshitChanpura committed Oct 14, 2022
1 parent 01faecd commit 162b4ab
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
*/

package org.opensearch.authn;
<<<<<<< HEAD
=======

import org.opensearch.authn.StringPrincipal;
>>>>>>> a4c957e6722 (Integrate new changes with existing identity classes)

import java.security.Principal;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static ConcurrentMap<String, User> readInternalSubjectsAsMap(String pathT
throw new RuntimeException(e);
}
});

internalUsersMap.put(primaryPrincipal, user);
}
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@
import org.opensearch.action.termvectors.TransportTermVectorsAction;
import org.opensearch.action.update.TransportUpdateAction;
import org.opensearch.action.update.UpdateAction;
import org.opensearch.authn.realm.InternalRealm;
import org.opensearch.client.node.NodeClient;
import org.opensearch.cluster.metadata.IndexNameExpressionResolver;
import org.opensearch.cluster.node.DiscoveryNodes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import static org.opensearch.node.Node.INTERNAL_REALM;


/**
* Adds a wrapper to all rest requests to add authentication mechanism
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ grant codeBase "${codebase.opensearch-plugin-classloader}" {
permission java.lang.RuntimePermission "createClassLoader";
};

grant codeBase "${codebase.jackson-databind}" {
// needed by jackson-databind ObjectMapper.readValue
permission java.lang.RuntimePermission "accessDeclaredMembers";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};

grant codeBase "${codebase.jackson-databind}" {
// needed by jackson-databind ObjectMapper.readValue
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
Expand Down Expand Up @@ -194,6 +188,4 @@ grant {
permission java.io.FilePermission "/sys/fs/cgroup/memory", "read";
permission java.io.FilePermission "/sys/fs/cgroup/memory/-", "read";

// needed by jackson-databind ObjectMapper.readValue
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};

0 comments on commit 162b4ab

Please sign in to comment.