public interface Impersonation
Impersonation
maintains Principals that are allowed to
impersonate. Principals can be added or removed using
grantImpersonation(Principal)
and
revokeImpersonation(Principal)
, respectively.User.getImpersonation()
Modifier and Type | Method and Description |
---|---|
boolean |
allows(@NotNull javax.security.auth.Subject subject)
Test if the given subject (i.e.
|
@NotNull PrincipalIterator |
getImpersonators() |
boolean |
grantImpersonation(@NotNull java.security.Principal principal) |
boolean |
revokeImpersonation(@NotNull java.security.Principal principal) |
@NotNull @NotNull PrincipalIterator getImpersonators() throws RepositoryException
Principal
s that are allowed
to impersonate the User
this Impersonation
object has been created for.RepositoryException
- If an error occurs.boolean grantImpersonation(@NotNull @NotNull java.security.Principal principal) throws RepositoryException
principal
- The principal that should be allowed to impersonate
the User
this Impersonation
has been built for.Principal
has not been allowed
to impersonate before and if impersonation has been successfully
granted to it, false otherwise.RepositoryException
- If an error occurs.boolean revokeImpersonation(@NotNull @NotNull java.security.Principal principal) throws RepositoryException
principal
- The principal that should no longer be allowed to
impersonate.RepositoryException
- If an error occurs.boolean allows(@NotNull @NotNull javax.security.auth.Subject subject) throws RepositoryException
subject
- to impersonate.Impersonation
allows the specified
Subject to impersonate.RepositoryException
- If an error occurs.Copyright © 2010 - 2020 Adobe. All Rights Reserved