security jaas: tabs
This commit is contained in:
parent
124fe18ffe
commit
5d6cff491e
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue