WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

examples.security.acl
Class FrobImpl

java.lang.Object
  |
  +--examples.security.acl.FrobImpl
All Implemented Interfaces:
Frobable, weblogic.rmi.Remote, java.rmi.Remote

public class FrobImpl
extends java.lang.Object
implements Frobable

Class FrobImpl illustrates how to use an ACL to protect an RMI object's method. You will see either a success message or a SecurityException from the frob method.

Author:
Copyright (c) 1997-2000 by BEA Systems, Inc. All Rights Reserved.

Field Summary
(package private) static java.lang.String ACL_NAME
           
(package private) static java.lang.String PERMISSION_NAME
           
(package private) static java.lang.String REALM_NAME
           
 
Constructor Summary
FrobImpl()
           
 
Method Summary
 void frob()
          Illustrates two ways to check access permissions of an RMI object.
static void main(java.lang.String[] args)
          Creates a FrobImpl and binds in JNDI as frob target.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACL_NAME

static final java.lang.String ACL_NAME

PERMISSION_NAME

static final java.lang.String PERMISSION_NAME

REALM_NAME

static final java.lang.String REALM_NAME
Constructor Detail

FrobImpl

public FrobImpl()
Method Detail

frob

public void frob()
          throws weblogic.rmi.RemoteException
Illustrates two ways to check access permissions of an RMI object. Checking permission is a single static method call for ACLs in the WebLogic Realm. Also shown here is a general method of checking security for the current user in the current Realm.
Specified by:
frob in interface Frobable

main

public static void main(java.lang.String[] args)
Creates a FrobImpl and binds in JNDI as frob target.

Documentation is available at
http://e-docs.bea.com/wls/docs60

Copyright © 2000 BEA Systems, Inc. All Rights Reserved.