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
|
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 |
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
FrobImpl
public FrobImpl()
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.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.