Class ImpersonationCredentials
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.ImpersonationCredentials
-
- All Implemented Interfaces:
java.io.Serializable,javax.jcr.Credentials
public class ImpersonationCredentials extends java.lang.Object implements javax.jcr.CredentialsImplementation of the JCRCredentialsinterface used to distinguish a regular login request fromSession.impersonate(javax.jcr.Credentials).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImpersonationCredentials(javax.jcr.Credentials baseCredentials, AuthInfo authInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jcr.CredentialsgetBaseCredentials()Returns theCredentialsoriginally passed toSession.impersonate(javax.jcr.Credentials).AuthInfogetImpersonatorInfo()Returns theAuthInfopresent with the editing session that want to impersonate.
-
-
-
Constructor Detail
-
ImpersonationCredentials
public ImpersonationCredentials(javax.jcr.Credentials baseCredentials, AuthInfo authInfo)
-
-
Method Detail
-
getBaseCredentials
public javax.jcr.Credentials getBaseCredentials()
Returns theCredentialsoriginally passed toSession.impersonate(javax.jcr.Credentials).- Returns:
- the
Credentialsoriginally passed toSession.impersonate(javax.jcr.Credentials).
-
getImpersonatorInfo
public AuthInfo getImpersonatorInfo()
Returns theAuthInfopresent with the editing session that want to impersonate.- Returns:
AuthInfopresent with the editing session that want to impersonate.- See Also:
ContentSession.getAuthInfo()
-
-