|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceResolverFactory
The ResourceResolverFactory
defines the service API to get and
create ResourceResolver
s.
As soon as the resource resolver is not used anymore,
ResourceResolver.close()
should be called.
Field Summary | |
---|---|
static String |
PASSWORD
Name of the authentication information property providing the password of the user for which to create a resource resolver. |
static String |
USER
Name of the authentication information property providing the name of the user for which the getResourceResolver(Map) and
getAdministrativeResourceResolver(Map) create resource
resolvers. on whose behalf the request is being handled. |
static String |
USER_IMPERSONATION
Name of the authentication information property causing the getResourceResolver(Map) and
getAdministrativeResourceResolver(Map) methods to try to
impersonate the created resource resolver to the requested user and
return the impersonated resource resolver. |
Method Summary | |
---|---|
ResourceResolver |
getAdministrativeResourceResolver(Map<String,Object> authenticationInfo)
Returns a new ResourceResolver instance with administrative
privileges with further configuration taken from the given
authenticationInfo map. |
ResourceResolver |
getResourceResolver(Map<String,Object> authenticationInfo)
Returns a new ResourceResolver instance with further
configuration taken from the given authenticationInfo map. |
Field Detail |
---|
static final String USER
getResourceResolver(Map)
and
getAdministrativeResourceResolver(Map)
create resource
resolvers. on whose behalf the request is being handled. This property
may be missing in which case an anonymous (unauthenticated) resource
resolver is returned if possible.
The type of this property, if present, is String
.
static final String PASSWORD
The type of this property, if present, is char[]
.
static final String USER_IMPERSONATION
getResourceResolver(Map)
and
getAdministrativeResourceResolver(Map)
methods to try to
impersonate the created resource resolver to the requested user and
return the impersonated resource resolver.
If this impersonation fails the actual creation of the resource resolver fails.
If this property is not set in the authentication info or is set to the
same name as the user.name
property this property is
ignored.
The type of this property, if present, is String
.
Method Detail |
---|
ResourceResolver getResourceResolver(Map<String,Object> authenticationInfo) throws LoginException
ResourceResolver
instance with further
configuration taken from the given authenticationInfo
map.
Generally this map will contain a user name and password to authenticate.
If the authenticationInfo
map is null
the
ResourceResolver
returned will generally not be
authenticated and only provide minimal privileges, if any at all.
authenticationInfo
- A map of further credential information which
may be used by the implementation to parametrize how the
resource resolver is created. This may be null
.
ResourceResolver
according to the
authenticationInfo
.
LoginException
- If an error occurrs creating the new
ResourceResolver
with the provided credential
data.ResourceResolver getAdministrativeResourceResolver(Map<String,Object> authenticationInfo) throws LoginException
ResourceResolver
instance with administrative
privileges with further configuration taken from the given
authenticationInfo
map.
Note, that if the authenticationInfo
map contains the
USER_IMPERSONATION
attribute the ResourceResolver
returned will only have administrative privileges if the user identified
by the property has administrative privileges.
authenticationInfo
- A map of further credential information which
may be used by the implementation to parametrize how the
resource resolver is created. This may be null
.
ResourceResolver
with administrative privileges unless
the USER_IMPERSONATION
was set in the
authenticationInfo
.
LoginException
- If an error occurrs creating the new
ResourceResolver
with the provided credential
data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |