@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 |
|---|
SecureAdminPrincipal.Resolver() |
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 © 2013. All Rights Reserved.