From 275d0bbf555c8917be82ce4cc21eb4cabb00f4c5 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 3 Oct 2014 17:30:41 +0200 Subject: Huge exception overhaul: Merged ClusterStorageException with PersistencyException. Replaced MembershipException with InvalidCollectionModification CORBA Exception. Made all predef steps throw more accurate exceptions when they go wrong, and let more exceptions bubble through from underneath. --- .../com/c2kernel/process/auth/Authenticator.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/main/java/com/c2kernel/process/auth') diff --git a/src/main/java/com/c2kernel/process/auth/Authenticator.java b/src/main/java/com/c2kernel/process/auth/Authenticator.java index 4578744..8e06da0 100644 --- a/src/main/java/com/c2kernel/process/auth/Authenticator.java +++ b/src/main/java/com/c2kernel/process/auth/Authenticator.java @@ -20,8 +20,8 @@ */ package com.c2kernel.process.auth; -import com.c2kernel.common.InvalidDataException; -import com.c2kernel.common.ObjectNotFoundException; +import com.c2kernel.common.InvalidData; +import com.c2kernel.common.ObjectNotFound; /** * This interface is used by the kernel to store an authenticated connection @@ -55,14 +55,14 @@ public interface Authenticator { * method if required. May be null. * @return a boolean indicating if the authentication was successful. If so, * then the Gateway will generate an AgentProxy for the given user. - * @throws ObjectNotFoundException + * @throws ObjectNotFound * When the Agent doesn't exist - * @throws InvalidDataException + * @throws InvalidData * When authentication fails for another reason */ public boolean authenticate(String agentName, String password, - String resource) throws InvalidDataException, - ObjectNotFoundException; + String resource) throws InvalidData, + ObjectNotFound; /** * Authenticates a superuser connection for the server. It must be able to @@ -71,11 +71,11 @@ public interface Authenticator { * * @param resource * @return - * @throws InvalidDataException - * @throws ObjectNotFoundException + * @throws InvalidData + * @throws ObjectNotFound */ - public boolean authenticate(String resource) throws InvalidDataException, - ObjectNotFoundException; + public boolean authenticate(String resource) throws InvalidData, + ObjectNotFound; /** * Lookup and storage implementations that need to use user or superuser -- cgit v1.2.3