WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

examples.security.jaas
Class FrobImpl

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

public class FrobImpl
extends java.lang.Object
implements Frobable

Illustrates how to use an ACL to protect the methods of an RMI object's. 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 the permissions of an 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 the permissions of an object. Checking permission is a single static method call for ACLs in a security realm. You can also use a general method of checking security for the current user in the current security 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.