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