00001 00027 package org.objectweb.jonas.security; 00028 00029 import java.security.NoSuchAlgorithmException; 00030 00038 public interface JonasSecurityServiceImplMBean { 00039 00047 String encryptPassword(String string, String algo) throws NoSuchAlgorithmException; 00048 00049 00055 void addResources(String xml) throws Exception; 00056 00062 void removeJResource(String resourceName) throws Exception; 00063 00069 boolean isValidAlgorithm(String algo); 00070 00076 void addJResourceMemory(String name) throws Exception; 00077 00091 void addJResourceDS(String name, 00092 String dsName, 00093 String userTable, 00094 String userTableUsernameCol, 00095 String userTablePasswordCol, 00096 String roleTable, 00097 String roleTableUsernameCol, 00098 String roleTableRolenameCol, 00099 String algorithm) throws Exception; 00100 00101 00126 void addJResourceLDAP(String name, 00127 String initialContextFactory, 00128 String providerUrl, 00129 String securityAuthentication, 00130 String securityPrincipal, 00131 String securityCredentials, 00132 String securityProtocol, 00133 String language, 00134 String referral, 00135 String stateFactories, 00136 String authenticationMode, 00137 String userPasswordAttribute, 00138 String userRolesAttribute, 00139 String roleNameAttribute, 00140 String baseDN, 00141 String userDN, 00142 String userSearchFilter, 00143 String roleDN, 00144 String roleSearchFilter, 00145 String algorithm) throws Exception; 00146 00147 }