From b96dd998d6c442be19c342399839896d00d4b6f5 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Mon, 2 Jun 2014 11:31:08 +0200 Subject: Initial commit --- src/main/java/com/c2kernel/process/auth/Authenticator.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 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 ae18474..61986a6 100644 --- a/src/main/java/com/c2kernel/process/auth/Authenticator.java +++ b/src/main/java/com/c2kernel/process/auth/Authenticator.java @@ -1,12 +1,16 @@ package com.c2kernel.process.auth; -import java.util.Properties; +import com.c2kernel.common.InvalidDataException; +import com.c2kernel.common.ObjectNotFoundException; -import com.c2kernel.entity.proxy.AgentProxy; public interface Authenticator { - - public void initialize(Properties props) throws Exception; - public AgentProxy authenticate(String resource) throws Exception; + public boolean authenticate(String resource, String agentName, String password) throws InvalidDataException, ObjectNotFoundException; + + public boolean authenticate(String resource) throws InvalidDataException, ObjectNotFoundException; + + public Object getAuthObject(); + + public void disconnect(); } -- cgit v1.2.3