Commit 09fc6d35 authored by Dustin Jenkins's avatar Dustin Jenkins
Browse files

Story 1869: Code clean up.

parent 22bc2eb9
......@@ -87,22 +87,14 @@ public class ACScopeValidator extends DelegationToken.ScopeValidator
public ACScopeValidator() { }
@Override
public void verifyScope(URI scope, String requestURI)
public void verifyScope(URI scope, String requestURI)
throws InvalidDelegationTokenException
{
try
if (!requestURI.endsWith(RESET_PASSWORD_SCOPE)
&& !scope.toASCIIString().equals(RESET_PASSWORD_SCOPE))
{
// validate service endpoint
if ((requestURI.endsWith(RESET_PASSWORD_SCOPE)) &&
(scope.toASCIIString().equals(RESET_PASSWORD_SCOPE)))
{
return; // OK
}
throw new InvalidDelegationTokenException("invalid scope: "
+ scope);
}
catch(Exception ignore) { }
throw new InvalidDelegationTokenException("invalid scope: " + scope);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment