<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The method createAuthentication(String, char[]) is undefined in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/the-method-createauthentication-string-char-is-undefined/m-p/236193#M189323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Alfresco-Community-3.3 and am trying out the following example code from Jeff Potts Alfresco Developer Guide:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;// client-extensions/src/java/com/someco/module/BootstrapAuthorityCreator.java&lt;BR /&gt;// create tuser1, tuser2, tuser3, tuser4&lt;BR /&gt;if(!authenticationService.authenticationExists("tuser1")) {&lt;BR /&gt;&amp;nbsp; authenticationService.createAuthentication("tuser1", "password".toCharArray());&lt;BR /&gt;&amp;nbsp; if (logger.isDebugEnabled()) logger.debug("Created tuser1 auth");&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But I get this error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;The method createAuthentication(String, char[]) is undefined for the type AuthenticationService&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And indeed when I look at the &lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/security/AuthenticationService.html" rel="nofollow noopener noreferrer"&gt;javadocs for org.alfresco.service.cmr.security.AuthenticationService&lt;/A&gt;&lt;SPAN&gt; there is no &lt;/SPAN&gt;&lt;SPAN style="color:#4040FF;"&gt;createAuthentication()&lt;/SPAN&gt;&lt;SPAN&gt; method. It seems to have been moved into &lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/security/MutableAuthenticationService.html" rel="nofollow noopener noreferrer"&gt;org.alfresco.service.cmr.security.MutableAuthenticationService&lt;/A&gt;&lt;SPAN&gt;. So, I changed &lt;/SPAN&gt;&lt;SPAN style="color:#4040FF;"&gt;authenticationService&lt;/SPAN&gt;&lt;SPAN&gt; into a &lt;/SPAN&gt;&lt;SPAN style="color:#4040FF;"&gt;MutableAuthenticationService&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;// private AuthenticationService authenticationService;&lt;BR /&gt; private MutableAuthenticationService authenticationService;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You also need to modify the signature of &lt;/SPAN&gt;&lt;SPAN style="color:#4040FF;"&gt;setAuthenticationService()&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jun 2010 05:44:03 GMT</pubDate>
    <dc:creator>robertmarkbram</dc:creator>
    <dc:date>2010-06-02T05:44:03Z</dc:date>
    <item>
      <title>The method createAuthentication(String, char[]) is undefined</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/the-method-createauthentication-string-char-is-undefined/m-p/236193#M189323</link>
      <description>Hi All,I am using Alfresco-Community-3.3 and am trying out the following example code from Jeff Potts Alfresco Developer Guide:// client-extensions/src/java/com/someco/module/BootstrapAuthorityCreator.java// create tuser1, tuser2, tuser3, tuser4if(!authenticationService.authenticationExists("tuser1"</description>
      <pubDate>Wed, 02 Jun 2010 05:44:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/the-method-createauthentication-string-char-is-undefined/m-p/236193#M189323</guid>
      <dc:creator>robertmarkbram</dc:creator>
      <dc:date>2010-06-02T05:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: The method createAuthentication(String, char[]) is undefined</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/the-method-createauthentication-string-char-is-undefined/m-p/236194#M189324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for posting this&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just getting in to developing for Alfresco and with Java (I have C# development background) and this was most helpful in getting me off the ground.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 12:00:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/the-method-createauthentication-string-char-is-undefined/m-p/236194#M189324</guid>
      <dc:creator>rwilson1982</dc:creator>
      <dc:date>2010-06-17T12:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: The method createAuthentication(String, char[]) is undefined</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/the-method-createauthentication-string-char-is-undefined/m-p/236195#M189325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're welcome. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 01:40:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/the-method-createauthentication-string-char-is-undefined/m-p/236195#M189325</guid>
      <dc:creator>robertmarkbram</dc:creator>
      <dc:date>2010-06-25T01:40:59Z</dc:date>
    </item>
  </channel>
</rss>

