1 package org
.argeo
.security
.core
;
3 import org
.springframework
.security
.GrantedAuthority
;
4 import org
.springframework
.security
.GrantedAuthorityImpl
;
5 import org
.springframework
.security
.adapters
.PrincipalSpringSecurityUserToken
;
7 public class InternalAuthentication
extends PrincipalSpringSecurityUserToken
{
8 private static final long serialVersionUID
= -6783376375615949315L;
9 public final static String DEFAULT_SYSTEM_USERNAME
= "system";
10 public final static String DEFAULT_SYSTEM_ROLE
= "ROLE_SYSTEM";
12 public InternalAuthentication(String key
, String systemUsername
,
18 new GrantedAuthority
[] { new GrantedAuthorityImpl(systemRole
) },
22 public InternalAuthentication(String key
) {
23 this(key
, DEFAULT_SYSTEM_USERNAME
, DEFAULT_SYSTEM_ROLE
);