/** * Get available user store manager implementations * * @return: Available implementations for user store managers */ public String[] getAvailableUserStoreClasses() throws IdentityUserStoreMgtException { Set<String> classNames = UserStoreManagerRegistry.getUserStoreManagerClasses(); return classNames.toArray(new String[classNames.size()]); }
/** * Obtains the mandatory properties for a given userStoreClass * * @param userStoreClass userStoreClass name * @return Property[] of Mandatory Properties */ private Property[] getMandatoryProperties(String userStoreClass) { return UserStoreManagerRegistry.getUserStoreProperties(userStoreClass).getMandatoryProperties(); }
/** * Obtains the mandatory properties for a given userStoreClass * * @param userStoreClass userStoreClass name * @return Property[] of Mandatory Properties */ private Property[] getMandatoryProperties(String userStoreClass) { return UserStoreManagerRegistry.getUserStoreProperties(userStoreClass).getMandatoryProperties(); }
/** * Get available user store manager implementations * * @return: Available implementations for user store managers */ public String[] getAvailableUserStoreClasses() throws IdentityUserStoreMgtException { Set<String> classNames = UserStoreManagerRegistry.getUserStoreManagerClasses(); return classNames.toArray(new String[classNames.size()]); }
/** * Get the list of properties from mandatoryProperties list * * @param userStoreClass class name of user store * @return ArrayList consisting of mandatory properties to be encrypted */ private static ArrayList<String> getEncryptPropertyList(String userStoreClass) { //First check for mandatory field with #encrypt Property[] mandatoryProperties = UserStoreManagerRegistry.getUserStoreProperties(userStoreClass). getMandatoryProperties(); ArrayList<String> propertyList = new ArrayList<String>(); for (Property property : mandatoryProperties) { if (property != null) { String propertyName = property.getName(); if (propertyName != null && property.getDescription().contains (UserStoreConfigurationConstants.ENCRYPT_TEXT)) { propertyList.add(propertyName); } } } return propertyList; }
/** * Get the list of properties from mandatoryProperties list * * @param userStoreClass class name of user store * @return ArrayList consisting of mandatory properties to be encrypted */ private static ArrayList<String> getEncryptPropertyList(String userStoreClass) { //First check for mandatory field with #encrypt Property[] mandatoryProperties = UserStoreManagerRegistry.getUserStoreProperties(userStoreClass). getMandatoryProperties(); ArrayList<String> propertyList = new ArrayList<String>(); for (Property property : mandatoryProperties) { if (property != null) { String propertyName = property.getName(); if (propertyName != null && property.getDescription().contains (UserStoreConfigurationConstants.ENCRYPT_TEXT)) { propertyList.add(propertyName); } } } return propertyList; }
/** * Get the list of properties from mandatoryProperties list * * @param userStoreClass class name of user store * @return ArrayList consisting of mandatory properties to be encrypted */ private static ArrayList<String> getEncryptPropertyList(String userStoreClass) { //First check for mandatory field with #encrypt Property[] mandatoryProperties = UserStoreManagerRegistry.getUserStoreProperties(userStoreClass). getMandatoryProperties(); ArrayList<String> propertyList = new ArrayList<String>(); for (Property property : mandatoryProperties) { if (property != null) { String propertyName = property.getName(); if (propertyName != null && property.getDescription().contains (UserStoreConfigurationConstants.ENCRYPT_TEXT)) { propertyList.add(propertyName); } } } return propertyList; }
Properties properties = UserStoreManagerRegistry.getUserStoreProperties(className);
Properties properties = UserStoreManagerRegistry.getUserStoreProperties(className);