01: package com.sabre.security.jndi;
02:
03: import java.security.NoSuchAlgorithmException;
04: import java.util.Map;
05: import javax.security.auth.Subject;
06:
07: public interface JNDIAuthenticator {
08:
09: String MESSAGE_COMMUNICATION_ERROR_KEY = "authentication.module.message.communicationError";
10: String MESSAGE_AUTHENTICATION_FAILED_KEY = "authentication.module.message.authenticationFailed";
11:
12: Subject authenticate(String username, String credentials)
13: throws AuthenticationException;
14:
15: void setOptions(Map options);
16:
17: void setDigest(String algorithm) throws NoSuchAlgorithmException;
18:
19: void setUserSubtree(String userSubtree);
20:
21: void setRoleSubtree(String roleSubtree);
22:
23: void setContextFactory(String contextFactory);
24:
25: void setAuthentication(String authentication);
26:
27: void setConnectionUser(String connectionUser);
28:
29: void setConnectionPassword(String connectionPassword);
30:
31: void setConnectionURL(String connectionURL);
32:
33: void setProtocol(String protocol);
34:
35: void setReferrals(String referrals);
36:
37: void setUserBase(String userBase);
38:
39: void setUserSearch(String userSearch);
40:
41: void setUserPassword(String userPassword);
42:
43: void setUserPattern(String userPattern);
44:
45: void setRoleBase(String roleBase);
46:
47: void setUserRoleName(String userRoleName);
48:
49: void setRoleName(String roleName);
50:
51: void setRoleSearch(String roleSearch);
52: }
|