mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-23 12:32:13 +00:00
Changed no-arg constructor to a form more suitable for unit testing.
This commit is contained in:
parent
68ee9aaabb
commit
c5951ff1c0
@ -44,7 +44,7 @@ public class JettyAcegiUserToken extends AbstractAdapterAuthenticationToken
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected JettyAcegiUserToken() {
|
protected JettyAcegiUserToken() {
|
||||||
super();
|
throw new IllegalArgumentException("Cannot use default constructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
//~ Methods ================================================================
|
//~ Methods ================================================================
|
||||||
|
@ -38,8 +38,8 @@ public class GrantedAuthorityImpl implements GrantedAuthority {
|
|||||||
this.role = role;
|
this.role = role;
|
||||||
}
|
}
|
||||||
|
|
||||||
private GrantedAuthorityImpl() {
|
protected GrantedAuthorityImpl() {
|
||||||
super();
|
throw new IllegalArgumentException("Cannot use default constructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
//~ Methods ================================================================
|
//~ Methods ================================================================
|
||||||
|
@ -32,8 +32,8 @@ public class SecurityConfig implements ConfigAttribute {
|
|||||||
this.attrib = config;
|
this.attrib = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
private SecurityConfig() {
|
protected SecurityConfig() {
|
||||||
super();
|
throw new IllegalArgumentException("Cannot use default constructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
//~ Methods ================================================================
|
//~ Methods ================================================================
|
||||||
|
@ -44,7 +44,7 @@ public class PrincipalAcegiUserToken extends AbstractAdapterAuthenticationToken
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected PrincipalAcegiUserToken() {
|
protected PrincipalAcegiUserToken() {
|
||||||
super();
|
throw new IllegalArgumentException("Cannot use default constructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
//~ Methods ================================================================
|
//~ Methods ================================================================
|
||||||
|
@ -47,8 +47,8 @@ public class RunAsUserToken extends AbstractAuthenticationToken {
|
|||||||
this.originalAuthentication = originalAuthentication;
|
this.originalAuthentication = originalAuthentication;
|
||||||
}
|
}
|
||||||
|
|
||||||
private RunAsUserToken() {
|
protected RunAsUserToken() {
|
||||||
super();
|
throw new IllegalArgumentException("Cannot use default constructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
//~ Methods ================================================================
|
//~ Methods ================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user