The certificate trust store is referenced by the system properties javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword. Within your code you can change those system properties, and then that trust store will be used the next time credentials are needed.
Thanks for your reply,
But the problem is still here, the server.keystore can't load new generated certificats. I think that i must add a function that relaod the keystore after generating new certificat by implementing SecurityDomain, JaasSecurityDomainMBean interfaces !!!
Do you have any idea ?