com.sun.enterprise.config.serverbeans
Class SecureAdminPrincipal.Resolver

java.lang.Object
  extended by com.sun.enterprise.config.serverbeans.SecureAdminPrincipal.Resolver
All Implemented Interfaces:
CrudResolver
Enclosing interface:
SecureAdminPrincipal

@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public static class SecureAdminPrincipal.Resolver
extends java.lang.Object
implements CrudResolver

Resolves using the type and any name, with no restrictions on the name and with an optional mapping from a cert alias to the name.

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.

Author:
Tim Quinn

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.glassfish.config.support.CrudResolver
CrudResolver.DefaultResolver
 
Field Summary
protected static LocalStringManagerImpl localStrings
           
 
Constructor Summary
SecureAdminPrincipal.Resolver()
           
 
Method Summary
<T extends org.jvnet.hk2.config.ConfigBeanProxy>
T
resolve(AdminCommandContext context, java.lang.Class<T> type)
          Retrieves the existing configuration object a command invocation is intented to mutate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localStrings

protected static final LocalStringManagerImpl localStrings
Constructor Detail

SecureAdminPrincipal.Resolver

public SecureAdminPrincipal.Resolver()
Method Detail

resolve

public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T resolve(AdminCommandContext context,
                                                                  java.lang.Class<T> type)
Description copied from interface: CrudResolver
Retrieves the existing configuration object a command invocation is intented to mutate.

Specified by:
resolve in interface CrudResolver
Parameters:
context - the command invocation context
type - the type of the expected instance
Returns:
the instance or null if not found


Copyright © 2012 GlassFish Community. All Rights Reserved.