[Minor] properties are read-only on Certificate

This commit is contained in:
Robert von Burg 2014-01-28 22:07:04 +01:00
parent 1f28237091
commit 4627f59a80
2 changed files with 3 additions and 2 deletions

View File

@ -639,7 +639,7 @@ public class DefaultPrivilegeHandler implements PrivilegeHandler {
// make sure not a system user - they may not login in
if (user.getUserState() == UserState.SYSTEM) {
String msg = "User {0} is a system user and may no login!"; //$NON-NLS-1$
String msg = "User {0} is a system user and may not login!"; //$NON-NLS-1$
msg = MessageFormat.format(msg, username);
throw new AccessDeniedException(msg);
}

View File

@ -16,6 +16,7 @@
package ch.eitchnet.privilege.model;
import java.io.Serializable;
import java.util.Collections;
import java.util.Locale;
import java.util.Map;
@ -88,7 +89,7 @@ public final class Certificate implements Serializable {
else
this.locale = locale;
this.propertyMap = propertyMap;
this.propertyMap = Collections.unmodifiableMap(propertyMap);
}
/**