security jaas: tabs

This commit is contained in:
eelhazati 2020-01-28 21:38:07 +01:00
parent 124fe18ffe
commit 5d6cff491e
2 changed files with 6 additions and 8 deletions

View File

@ -25,9 +25,7 @@ public class InMemoryLoginModule implements LoginModule {
private Principal userPrincipal;
@Override
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String, ?> sharedState,
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState,
Map<String, ?> options) {
this.subject = subject;
this.callbackHandler = callbackHandler;

View File

@ -1,8 +1,8 @@
grant codebase "file:./jaas-app/target/jaas-app.jar" {
permission javax.security.auth.AuthPermission "createLoginContext.jaasApplication";
permission javax.security.auth.AuthPermission "doAsPrivileged";
permission java.lang.RuntimePermission "readFileDescriptor";
permission java.lang.RuntimePermission "writeFileDescriptor";
permission javax.security.auth.AuthPermission "createLoginContext.jaasApplication";
permission javax.security.auth.AuthPermission "doAsPrivileged";
permission java.lang.RuntimePermission "readFileDescriptor";
permission java.lang.RuntimePermission "writeFileDescriptor";
};
grant codebase "file:./jaas-login-module/target/jaas-login-module.jar" {
@ -10,5 +10,5 @@ grant codebase "file:./jaas-login-module/target/jaas-login-module.jar" {
};
grant principal com.sun.security.auth.UserPrincipal "testuser" {
permission com.baeldung.security.jaas.app.ResourcePermission "test_resource";
permission com.baeldung.security.jaas.app.ResourcePermission "test_resource";
};