KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > security > SubjectSecurityProxyFactory


1 /*
2  * JBoss, the OpenSource EJB server
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.security;
8
9 import java.io.Serializable JavaDoc;
10
11 /** An implementation of SecurityProxyFactory that creates SubjectSecurityProxy
12 objects to wrap the raw security proxy objects.
13
14 @author Scott.Stark@jboss.org
15 @version $Revision: 1.2.26.1 $
16 */

17 public class SubjectSecurityProxyFactory implements SecurityProxyFactory, Serializable JavaDoc
18 {
19    static final long serialVersionUID = -8679600309865839261L;
20
21     public SecurityProxy create(Object JavaDoc proxyDelegate)
22     {
23         SecurityProxy proxy = new SubjectSecurityProxy(proxyDelegate);
24         return proxy;
25     }
26
27 }
28
Popular Tags