private String getProp(Properties aProps, String aKey) throws BadRealmException { String value = aProps.getProperty(aKey); if (value == null) { String msg = "Missing property '" + aKey + "' for FlexibleJdbcRealm"; throw new BadRealmException(msg); } if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.finest("Config property read " + aKey + " = '" + value + "'"); } return value; }
"list.file.user.realmcorrupted", "Configured file realm {0} is corrupted.", authRealmName) + " " + e.getLocalizedMessage()); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e);
"list.file.user.realmcorrupted", "Configured file realm {0} is corrupted.", authRealmName) + " " + e.getLocalizedMessage()); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e);
/** * Remove user from file realm. User must exist. * * @param name User name. * @throws NoSuchUserException If user does not exist. * */ public void removeUser(String name) throws NoSuchUserException, BadRealmException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
localStrings.getLocalString( "delete.file.user.realmcorrupted", "Configured file realm {0} is corrupted.", authRealmName) + " " + e.getLocalizedMessage()); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e);
/** * Remove user from file realm. User must exist. * * @param name User name. * @throws NoSuchUserException If user does not exist. * */ public void removeUser(String name) throws NoSuchUserException, BadRealmException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
localStrings.getLocalString( "delete.file.user.realmcorrupted", "Configured file realm {0} is corrupted.", authRealmName) + " " + e.getLocalizedMessage()); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e);
/** * Remove user from file realm. User must exist. * * @param name User name. * @throws NoSuchUserException If user does not exist. * */ public void removeUser(String name) throws NoSuchUserException, BadRealmException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
"list.file.group.realmcorrupted", "Configured file realm {0} is corrupted.", authRealmName) + " " + e.getLocalizedMessage()); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e);
/** * Persist the realm data to permanent storage * @throws com.sun.enterprise.security.auth.realm.BadRealmException */ @Override public void persist() throws BadRealmException { try { helper.persist(); } catch (IOException ex) { throw new BadRealmException(ex); } } }
"list.file.user.realmcorrupted", "Configured file realm {0} is corrupted.", authRealmName) + " " + e.getLocalizedMessage()); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e);
/** * Refreshes the realm data so that new users/groups are visible. * * <P>This method always throws a BadRealmException since by default * this operation is not supported. Subclasses which support this * method can override. * * @exception com.sun.enterprise.security.auth.realm.BadRealmException if realm data structures are bad * */ public void refresh() throws BadRealmException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
/** * Refreshes the realm data so that new users/groups are visible. * * <P>This method always throws a BadRealmException since by default * this operation is not supported. Subclasses which support this * method can override. * * @exception com.sun.enterprise.security.auth.realm.BadRealmException if realm data structures are bad * */ public void refresh() throws BadRealmException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
/** * Returns names of all the users in this particular realm. * * <P>This method always throws a BadRealmException since by default * this operation is not supported. Subclasses which support this * method can override. * * @return enumeration of user names (strings) * @exception com.sun.enterprise.security.auth.realm.BadRealmException if realm data structures are bad * */ public Enumeration getUserNames() throws BadRealmException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
/** * Adds new user to file realm. User cannot exist already. * * @param name User name. * @param password Cleartext password for the user. * @param groupList List of groups to which user belongs. * @throws BadRealmException If there are problems adding user. * */ public void addUser(String name, char[] password, String[] groupList) throws BadRealmException, IASSecurityException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
/** * Adds new user to file realm. User cannot exist already. * * @param name User name. * @param password Cleartext password for the user. * @param groupList List of groups to which user belongs. * @throws BadRealmException If there are problems adding user. * */ public void addUser(String name, char[] password, String[] groupList) throws BadRealmException, IASSecurityException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
/** * Adds new user to file realm. User cannot exist already. * * @param name User name. * @param password Cleartext password for the user. * @param groupList List of groups to which user belongs. * @throws BadRealmException If there are problems adding user. * */ public void addUser(String name, String password, String[] groupList) throws BadRealmException, IASSecurityException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
/** * Returns names of all the groups in this particular realm. * * <P>This method always throws a BadRealmException since by default * this operation is not supported. Subclasses which support this * method can override. * * @return enumeration of group names (strings) * @exception com.sun.enterprise.security.auth.realm.BadRealmException if realm data structures are bad * */ public Enumeration getGroupNames() throws BadRealmException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
/** * Refreshes the realm data so that new users/groups are visible. * * <P>This method always throws a BadRealmException since by default * this operation is not supported. Subclasses which support this * method can override. * * @exception com.sun.enterprise.security.auth.realm.BadRealmException if realm data structures are bad * */ public void refresh() throws BadRealmException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }
/** * Returns names of all the groups in this particular realm. * * <P>This method always throws a BadRealmException since by default * this operation is not supported. Subclasses which support this * method can override. * * @return enumeration of group names (strings) * @exception com.sun.enterprise.security.auth.realm.BadRealmException if realm data structures are bad * */ public Enumeration getGroupNames() throws BadRealmException { String msg = sm.getString("iasrealm.notsupported"); throw new BadRealmException(msg); }