Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 384757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:24:41+00:00 2026-05-12T15:24:41+00:00

I was just reading an article that showed the following Spring Security XML configuration:

  • 0

I was just reading an article that showed the following Spring Security XML configuration:

<authentication-provider>  
  <password-encoder hash="sha" />  
  <jdbc-user-service data-source-ref="dataSource" />  
</authentication-provider>

I wondered if password-encoder could take some combination of parameters that would make it use SHA-256. I easily found the Java constructor for the ShaPasswordEncoder, but how can I tell whether the password-encoder tag takes the argument for the Java object?

In general, how can one tell what the tags and parameters for Spring configuration are?

For example, how do I know which that ShaPasswordEncoder goes with “password-encoder” (if indeed it does)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:24:42+00:00Added an answer on May 12, 2026 at 3:24 pm

    You look at the XML Schema. For example:

    <xs:attribute name="hash">
      <xs:annotation>
        <xs:documentation>
          Defines the hashing algorithm used on user passwords. We recommend
          strongly against using MD4, as it is a very weak hashing algorithm.
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="plaintext"/>
          <xs:enumeration value="sha"/>
          <xs:enumeration value="sha-256"/>
          <xs:enumeration value="md5"/>
          <xs:enumeration value="md4"/>
          <xs:enumeration value="{sha}"/>
          <xs:enumeration value="{ssha}"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    

    So, you should do this:

    <authentication-provider>  
      <password-encoder hash="sha-256" />  
      <jdbc-user-service data-source-ref="dataSource" />  
    </authentication-provider>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was just reading this article and it mentions that some organization had an
I was reading this Ars article on password security and it mentioned there are
I'm quite new to Javascript and I was just reading following article. you can
I am reading an article about Entity Framework 4.0 that states the following: The
just was reading this article http://highscalability.com/blog/2010/3/23/digg-4000-performance-increase-by-sorting-in-php-rather-than.html And found this nice article http://wiki.apache.org/cassandra/DataModel I just
Just finished reading Jon Skeet's article about events and delegates and got a question.
I've just been reading Josh Smith's MVVM article and am working on a WPF
I was reading over an article that shows some really good information and benchmarks
I was just reading this article :- http://css-tricks.com/perfect-full-page-background-image/ Please note this css :- #bg
I was just reading an article about the non-compatibility of some CSS, when it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.