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(javax.security.auth.Subject subject)
Test if the given subject (i.e.
|
PrincipalIterator |
getImpersonators() |
boolean |
grantImpersonation(java.security.Principal principal) |
boolean |
revokeImpersonation(java.security.Principal principal) |
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(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(java.security.Principal principal) throws RepositoryException
principal
- The principal that should no longer be allowed to
impersonate.RepositoryException
- If an error occurs.boolean allows(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 Systems Incorporated. All Rights Reserved"