@Service @PerLookup public static class SecureAdminPrincipal.Resolver extends Object implements CrudResolver
The similar TypeAndNameResolver restricts the name to one that excludes
commas, because TypeAndNameResolver uses habitat.getComponent which
(ultimately) uses habitat.getInhabitantByContract which splits the name using
a comma to get a list of names to try to match against.
In some cases the name might actually contain a comma, so this resolver supports those cases.
This resolver also allows the caller to specify an alias instead of the name (the DN) itself, in which case the resolver maps the alias to the corresponding cert's DN and uses that as the name.
CrudResolver.DefaultResolver| Modifier and Type | Field and Description |
|---|---|
protected static com.sun.enterprise.util.LocalStringManagerImpl |
localStrings |
| Constructor and Description |
|---|
Resolver() |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.jvnet.hk2.config.ConfigBeanProxy> |
resolve(org.glassfish.api.admin.AdminCommandContext context,
Class<T> type)
Retrieves the existing configuration object a command invocation is intented to mutate.
|
protected static final com.sun.enterprise.util.LocalStringManagerImpl localStrings
public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T resolve(org.glassfish.api.admin.AdminCommandContext context,
Class<T> type)
CrudResolverresolve in interface CrudResolvercontext - the command invocation contexttype - the type of the expected instanceCopyright © 2017–2020 Eclipse Foundation. All rights reserved.