If those are references to beans, shouldn't you be using like key-ref and
value-ref?



On Fri, Feb 19, 2010 at 11:16 AM, Andy Cowling <
[email protected]> wrote:

>  I tried:
>
>      <bean id="authenticationManager"
>
> class="org.jasig.cas.authentication.LinkedAuthenticationHandlerAndCredentialsToPrincipalResolverAuthenticationManager">
>         <constructor-arg index="0">
>             <map>
>             <entry key="X509WithPeopleLDAP_Auth"
> value="X509WithPeopleLDAP_Principal"/>
>             <entry key="X509WithActiveDirectoryLDAP_Auth"
> value="X509WithPeopleLDAP_Principal"/>
>             <entry key="ActiveDirectorySPNEGO_Auth"
> value="ActiveDirectorySPNEGO_Principal"/>
>             <entry key="HTTPBasedService_Auth"
> value="HTTPBasedService_Principal"/>
>             </map>
>         </constructor-arg>
>           ...
>
>
> But got:
>
>  Could not convert constructor argument value of type
> [java.util.LinkedHashMap] to required type [java.util.Map]
>
>
> How can I provide the "map" in the bean definition? (without it looking
> like a LinkedHashMap!)
>
> Cheers
> Andy
>
>
> Andy Cowling wrote:
>
>   Back in November, Scott wrote:
>
>  Re: [cas-user] CAS Server 3.3.5 Release
> Scott Battaglia
> Thu, 12 Nov 2009 09:35:56 -0800
>
>   There isn't any yet. But you're looking at the right class. Its pretty
> simple. The constructor takes a map with the keys being the
> AuthenticationHandler and the values being the
> CredentialsToPrincipalResolver to call if the authentication handler
> succeeds.
>
>
> How do we populate the constructor with that mapping?
>
> Can anyone provide an example of the mapping showing the syntax (i.e., how
> are keys, values, and pairs of key-and-value differentiated from one
> another)?
>
> (An example in the code would be sooooo helpful! Maybe something for cas
> 3.3.6? ;-) )
>
> Cheers
> Andy
>
>
> --
> *Andy Cowling | UK Core IT*
> *Interactive Data Managed Solutions Ltd*
> -----------------------------------------------------------------------------------
>  Suite 1101, Eagle Tower | Montpellier Drive | Celtenham GL50 1TA | GL50
> 1LE
> Tel: +44 (0)1242 6941 15 | Fax: +44 (0)1242 6941 01
> [email protected]
> http://www.interactivedata-ms.com/
>
> This message (including any files transmitted with it) may contain
> confidential
> and/or proprietary information, is the property of Interactive Data
> Corporation
> and/or its subsidiaries, and is directed only to the addressee(s). If you
> are not
> the designated recipient or have reason to believe you received this
> message in
> error, please delete this message from your system and notify the sender
> immediately. An unintended recipient's disclosure, copying, distribution,
> or
> use of this message or any attachments is prohibited and may be unlawful.
> Interactive Data (Europe) Ltd Registered No. 949387 England Registered
> Office:
> Fitzroy House 13-17 Epworth Street. London. EC2A 4DL
>
>
>
> --
> *Andy Cowling | UK Core IT*
> *Interactive Data Managed Solutions Ltd*
> -----------------------------------------------------------------------------------
>  Suite 1101, Eagle Tower | Montpellier Drive | Celtenham GL50 1TA | GL50
> 1LE
> Tel: +44 (0)1242 6941 15 | Fax: +44 (0)1242 6941 01
> [email protected]
> http://www.interactivedata-ms.com/
>
> This message (including any files transmitted with it) may contain
> confidential
> and/or proprietary information, is the property of Interactive Data
> Corporation
> and/or its subsidiaries, and is directed only to the addressee(s). If you
> are not
> the designated recipient or have reason to believe you received this
> message in
> error, please delete this message from your system and notify the sender
> immediately. An unintended recipient's disclosure, copying, distribution,
> or
> use of this message or any attachments is prohibited and may be unlawful.
> Interactive Data (Europe) Ltd Registered No. 949387 England Registered
> Office:
> Fitzroy House 13-17 Epworth Street. London. EC2A 4DL
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to