Rename @TransientAuthentication to @Transient

It is quite likely we will need to prevent certain Exceptions from being
saved or from triggering a saved request. When we add support for this,
we can now leverage @Transient vs creating a new annotation.

Issue: gh-5481
This commit is contained in:
Rob Winch
2018-07-16 11:31:10 -05:00
parent ed3ed5e64c
commit d595098823
6 changed files with 12 additions and 12 deletions

View File

@@ -29,7 +29,7 @@ import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.config.test.SpringTestRule;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.TransientAuthentication;
import org.springframework.security.core.Transient;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MvcResult;
@@ -104,7 +104,7 @@ public class SessionManagementConfigurerTransientAuthenticationTests {
}
}
@TransientAuthentication
@Transient
static class SomeTransientAuthentication extends AbstractAuthenticationToken {
SomeTransientAuthentication() {
super(null);

View File

@@ -24,7 +24,7 @@ import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.config.test.SpringTestRule;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.TransientAuthentication;
import org.springframework.security.core.Transient;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MvcResult;
@@ -75,7 +75,7 @@ public class SessionManagementConfigTransientAuthenticationTests {
}
}
@TransientAuthentication
@Transient
static class SomeTransientAuthentication extends AbstractAuthenticationToken {
SomeTransientAuthentication() {
super(null);