Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aether-users] How can I verify proper authentication before use

Hi,

I experimented with the examples and I can successfully connect to a repository that requires authentication by using the AuthenticationBuilder to set the user name and password like this:

AuthenticationBuilder().addUsername("login").addPassword("secret").build();

However if the credentials are wrong it is not noticed until a repository operation like getting or putting an artifact is executed.

How can I trigger an early authentication, so that I prevent getting authentication errors later on (when I do multiple repository actions)?

I would also like to prompt the user for credentials only if the remote repository requires authentication. Is there a way to query that, so that I can use the AuthenticationBuilder only when necessary?

Thanks!
--

Lothar Werzinger

Principal Architect

Tradescape, Inc. - Enabling Efficient Digital Marketplaces

+1-650-931-6719 (direct)

+1-800-697-6068 (main) Ext. 116

lothar@xxxxxxxxxxxxxx

http://www.tradescape.biz




This message and any attachment (the "message") is intended solely for the addressees and is confidential. If you receive this message by mistake, please delete it and notify the sender immediately. Any use not in accordance with its purpose, any out-spread or disclosure, either as a whole or partially, is prohibited except with formal approval. Internet cannot guarantee the integrity of this message, therefore Tradescape will not be liable for the message if modified.

-


Back to the top