org.apache.jackrabbit.core.security.authentication
Class ImpersonationCallback
java.lang.Object
org.apache.jackrabbit.core.security.authentication.ImpersonationCallback
- All Implemented Interfaces:
- Callback
public class ImpersonationCallback
- extends Object
- implements Callback
Callback for a CallbackHandler
to ask
for a the impersonating Subject
to create a
Session
to access the Repository
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImpersonationCallback
public ImpersonationCallback()
setImpersonator
public void setImpersonator(Object impersonator)
- Sets the impersonator in this callback.
- Parameters:
impersonator
- The impersonator to set on this callback. If this is
not a Subject
this method does nothing.
getImpersonator
public Subject getImpersonator()
- Returns the impersonator
Subject
set on this callback or
null
if not set.
- Returns:
- the impersonator
Subject
set on this callback or
null
if not set.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.