All Examples All Security Examples
This package demonstrates how to restrict access to a WebLogic object -- in this case, an RMI object -- with an access control list (ACL). The user-defined ACL is added to the default WebLogic realm, and the RMI object checks the list for authorization before allowing a user to execute it.
weblogic.password.joeuser=joespass
weblogic.allow.frob.aclexample=joeuser
weblogic.system.startupClass.frob=examples.security.acl.FrobImpl
$ javac -d %SERVER_CLASSES% Frobable.java
$ javac -d %SERVER_CLASSES% FrobImpl.java
$ javac -d %CLIENT_CLASSES% Client.java
$ java weblogic.rmic -d %SERVER_CLASSES% examples.security.acl.FrobImpl
Note for Microsoft SDK for Java users
If you're running Microsoft SDK for Java, you must specify JVC as the Java compiler on the weblogic.rmic command line. Use this command to execute the WebLogic RMI compiler under JView:
$ jview weblogic.rmic -d %SERVER_CLASSES% -compiler jvc examples.security.acl.FrobImpl
$ java examples.security.acl.Client URL USER PASSWORD
For example,
$ java examples.security.acl.Client t3://localhost:7001 joeuser joespass