Element Summary

ElementDescriptionClass
basic-auth-credential-providerorg.josso.auth.scheme.UsernamePasswordCredentialProvider
basic-auth-schemeBasic authentication scheme, supporting username and password credentials.

Configuration properties supported by this authenticator are :

  • hashAlgorithm: The message digest algorithm to be used when hashing passwords. If not specified, no hashing is used. This must be an algorithm supported by the java.security.MessageDigest class on your platform. For J2SE 1.4.2 you can check : Java Cryptography Architecture API Specification & Reference - Apendix B : Algorithms
  • hashEncoding: The econding used to store hashed passwords. Supported values are HEX, BASE64.
  • ignorePasswordCase: If true, password case will be igonred. This property is ignored if a hashAlgorithm was specified. Default to false.
  • ignoreUserCase: If ture, username case will be ignored.
  • credential-store: The credential store configured for this authenticator. Check specific stores for specific configuraiton options
  • credential-store-key-adapter: The credential store key adapter configured for this authenticator. Check specific stores for specific configuraiton options

Sample authenticator configuration for basic authentication (username/password) :

<authentication-scheme>

<class>org.josso.auth.scheme.UsernamePasswordAuthScheme</class> <hashAlgorithm>MD5</hashAlgorithm> <hashEncoding>HEX</hashEncoding> <ignorePasswordCase>false</ignorePasswordCase> <ignoreUserCase>false</ignoreUserCase>

<!-- Configure the proper store here --> <credential-store> ... </credential-store>

<credential-store-key-adapter> ... </credential-store-key-adapter>

</authentication-scheme>

org.josso.auth.scheme.UsernamePasswordAuthScheme

Element Detail

Element: basic-auth-credential-provider

Element: basic-auth-scheme

AttributeTypeDescription
hashAlgorithmxs:string
hashCharsetxs:string
hashEncodingxs:stringGetter for the encoding used for password hashing. Supported values : HEX, BASE64
ignorePasswordCasexs:stringValues : true , false,
ignoreUserCasexs:stringValues : true , false,
namexs:string
saltLenghtxs:string
saltLengthxs:integerOnly used when CRYPT is configured, default value is 2.
ElementTypeDescription
credentialStore<spring:bean/>
credentialStoreKeyAdapter<spring:bean/>