Author: alexoree
Date: Thu Apr 11 22:19:59 2013
New Revision: 1467117
URL: http://svn.apache.org/r1467117
Log:
revising the thrown exception for expired tokens to the correct type, thus
enabling clients to receive the correct error message and handle the situation
instead of guessing
Modified:
juddi/trunk/juddi-core/src/main/java/org/apache/juddi/api/impl/AuthenticatedService.java
Modified:
juddi/trunk/juddi-core/src/main/java/org/apache/juddi/api/impl/AuthenticatedService.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/api/impl/AuthenticatedService.java?rev=1467117&r1=1467116&r2=1467117&view=diff
==============================================================================
---
juddi/trunk/juddi-core/src/main/java/org/apache/juddi/api/impl/AuthenticatedService.java
(original)
+++
juddi/trunk/juddi-core/src/main/java/org/apache/juddi/api/impl/AuthenticatedService.java
Thu Apr 11 22:19:59 2013
@@ -88,7 +88,7 @@ public abstract class AuthenticatedServi
}
if (modelAuthToken.getTokenState() == AUTHTOKEN_RETIRED)
- throw new AuthTokenRequiredException(new
ErrorMessage("errors.auth.AuthInvalid"));
+ throw new AuthTokenExpiredException(new
ErrorMessage("errors.auth.AuthInvalid"));
Authenticator authenticator =
AuthenticatorFactory.getAuthenticator();
UddiEntityPublisher entityPublisher =
authenticator.identify(authInfo, modelAuthToken.getAuthorizedName());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]