X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.security.core%2Fsrc%2Forg%2Fargeo%2Fsecurity%2Fcore%2FInternalAuthentication.java;fp=org.argeo.security.core%2Fsrc%2Forg%2Fargeo%2Fsecurity%2Fcore%2FInternalAuthentication.java;h=31e29d18d773f6d338559af2397ae7f8990b2f10;hb=d12f4cda6ff7b1de242a19362c3680f30ccc5168;hp=ee5e145bacb6b5a80492e86d5c14b748dff15756;hpb=13857d311c28142f457277eb62ab9412b42a71b2;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.security.core/src/org/argeo/security/core/InternalAuthentication.java b/org.argeo.security.core/src/org/argeo/security/core/InternalAuthentication.java index ee5e145ba..31e29d18d 100644 --- a/org.argeo.security.core/src/org/argeo/security/core/InternalAuthentication.java +++ b/org.argeo.security.core/src/org/argeo/security/core/InternalAuthentication.java @@ -25,10 +25,6 @@ import org.springframework.security.core.authority.SimpleGrantedAuthority; public class InternalAuthentication extends UsernamePasswordAuthenticationToken implements SystemAuthentication { private static final long serialVersionUID = -6783376375615949315L; - /** 'admin' for consistency with JCR */ - public final static String DEFAULT_SYSTEM_USERNAME = "admin"; - public final static String DEFAULT_SYSTEM_ROLE = "ROLE_SYSTEM"; - public final static String SYSTEM_KEY_PROPERTY = "argeo.security.systemKey"; public final static String SYSTEM_KEY_DEFAULT = "argeo"; public InternalAuthentication(String key, String systemUsername, @@ -38,7 +34,7 @@ public class InternalAuthentication extends UsernamePasswordAuthenticationToken } public InternalAuthentication(String key) { - this(key, DEFAULT_SYSTEM_USERNAME, DEFAULT_SYSTEM_ROLE); + this(key, SystemAuthentication.USERNAME_SYSTEM, SystemAuthentication.ROLE_SYSTEM); } }