![JAR search and dependency download from the Maven repository](/logo.png)
com.atlassian.usercontext.api.Impersonation Maven / Gradle / Ivy
package com.atlassian.usercontext.api;
import java.time.Instant;
import java.util.Optional;
/**
* Represents an impersonated session, where a user may impersonate another user
* (e.g. when a site administrator uses the 'login as user' feature).
*/
public interface Impersonation {
AccountId getAccountId();
/**
* @return the context in which this impersonation is restricted to. e.g. a cloud ID
*/
String getContextRestriction();
/**
* @return the time in which the impersonation expires. If empty, the impersonation never expires
*/
Optional getExpiry();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy