[jboss-user] [JBoss Web Services] - JBossWS - Authentication
Florian Stendel
do-not-reply at jboss.com
Mon Feb 7 09:48:53 EST 2011
Florian Stendel [http://community.jboss.org/people/vincentdhs] commented on the document
"JBossWS - Authentication"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-13533#comment-5378
--------------------------------------------------
@Andrea:
Try to use something like this before instantiating the service:
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username,password.toCharArray());
}
});
Where username & password are Strings.
(maybe you want to see: http://download.oracle.com/javase/1.4.2/docs/api/java/net/Authenticator.html http://download.oracle.com/javase/1.4.2/docs/api/java/net/Authenticator.html as well)
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110207/1c6a6412/attachment.html
More information about the jboss-user
mailing list