Class ImpersonationCredentials
java.lang.Object
org.apache.jackrabbit.oak.spi.security.authentication.ImpersonationCredentials
- All Implemented Interfaces:
Serializable,Credentials
Implementation of the JCR
Credentials interface used to distinguish
a regular login request from Session.impersonate(javax.jcr.Credentials).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionImpersonationCredentials(Credentials baseCredentials, org.apache.jackrabbit.oak.api.AuthInfo authInfo) -
Method Summary
Modifier and TypeMethodDescriptionReturns theCredentialsoriginally passed toSession.impersonate(javax.jcr.Credentials).org.apache.jackrabbit.oak.api.AuthInfoReturns theAuthInfopresent with the editing session that want to impersonate.
-
Constructor Details
-
ImpersonationCredentials
public ImpersonationCredentials(Credentials baseCredentials, org.apache.jackrabbit.oak.api.AuthInfo authInfo)
-
-
Method Details
-
getBaseCredentials
Returns theCredentialsoriginally passed toSession.impersonate(javax.jcr.Credentials).- Returns:
- the
Credentialsoriginally passed toSession.impersonate(javax.jcr.Credentials).
-
getImpersonatorInfo
public org.apache.jackrabbit.oak.api.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()
-