hmm,
that's more related to tomcat than tomee i guess
However you are not alone:
http://tomcat.10.n6.nabble.com/Proposal-Change-of-access-level-of-variables-and-some-additional-error-logging-in-DataSourceRealm-td2209415.html
- Romain
2012/5/24 José Luis Cetina
> I extended RealmBase and work
I extended RealmBase and works (copying DataSourceRealm) because:
i see preparedRoles and preparedCredentials attributes are private and they
dont have getters and setters if this is intentionally??
Thanks
2012/5/20 Romain Manni-Bucau
> Hi,
>
> I guess you need to extend the existing realm.
Hi,
I guess you need to extend the existing realm.
Maybe ask tomcat mailing list too
- Romain
Le 16 mai 2012 21:44, "José Luis Cetina" a écrit :
> " then the usage is this one:
>
> For the encoding, it should be in Charset.availableCharsets() aliases. "
>
> Im a little confused, when i used gl
" then the usage is this one:
For the encoding, it should be in Charset.availableCharsets() aliases. "
Im a little confused, when i used glassfish i have 3 properties for Realm
configuration:
digest algorithm, encoding and charset, then i got these values (in
Glassfish):
digest algorithm = SHA-
here the comments:
/**
* Digest algorithm used in storing passwords in a non-plaintext format.
* Valid values are those accepted for the algorithm name by the
* MessageDigest class, or null if no digesting should
* be performed.
*/
protected String digest = null;
Noup, here is my entire class:
package com.test;
import java.sql.Connection;
import javax.naming.InitialContext;
import javax.sql.DataSource;
public class MyDataSourceRealm extends
org.apache.catalina.realm.DataSourceRealm{
@Override
protected Connection open() {
System.out.prin
Did you override the validation?
Le 15 mai 2012 22:32, "José Luis Cetina" a écrit :
> This is my realm declaration:
>
> className="com.test.MyDataSourceRealm"
>dataSourceName="MyDataSource"
>userTable=" userTable "
>userNameCol=" userNameCol "
>userCredCol=
This is my realm declaration:
This work with SHA-256 and hex encoding password, but if i want to explicit
add the digestEncodig (digestEncoding="hexadecimal" or digestEncoding="hex"
or digestEncoding="HEX") like this:
I get:
Severe: Illegal digestEncoding: hex
java.io.UnsupportedEncodingE