mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-08 11:32:47 +00:00
Remove leading whitespaces
This commit is contained in:
parent
f8ee9944ff
commit
e345dd106c
@ -45,7 +45,7 @@ public class Jwt extends SecurityToken implements JwtClaimAccessor {
|
|||||||
private final Map<String, Object> claims;
|
private final Map<String, Object> claims;
|
||||||
|
|
||||||
public Jwt(String tokenValue, Instant issuedAt, Instant expiresAt,
|
public Jwt(String tokenValue, Instant issuedAt, Instant expiresAt,
|
||||||
Map<String, Object> headers, Map<String, Object> claims) {
|
Map<String, Object> headers, Map<String, Object> claims) {
|
||||||
super(tokenValue, issuedAt, expiresAt);
|
super(tokenValue, issuedAt, expiresAt);
|
||||||
Assert.notEmpty(headers, "headers cannot be empty");
|
Assert.notEmpty(headers, "headers cannot be empty");
|
||||||
Assert.notEmpty(claims, "claims cannot be empty");
|
Assert.notEmpty(claims, "claims cannot be empty");
|
||||||
|
@ -40,7 +40,7 @@ public interface AuthorizationRequestRepository {
|
|||||||
AuthorizationRequestAttributes loadAuthorizationRequest(HttpServletRequest request);
|
AuthorizationRequestAttributes loadAuthorizationRequest(HttpServletRequest request);
|
||||||
|
|
||||||
void saveAuthorizationRequest(AuthorizationRequestAttributes authorizationRequest, HttpServletRequest request,
|
void saveAuthorizationRequest(AuthorizationRequestAttributes authorizationRequest, HttpServletRequest request,
|
||||||
HttpServletResponse response);
|
HttpServletResponse response);
|
||||||
|
|
||||||
AuthorizationRequestAttributes removeAuthorizationRequest(HttpServletRequest request);
|
AuthorizationRequestAttributes removeAuthorizationRequest(HttpServletRequest request);
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ public final class HttpSessionAuthorizationRequestRepository implements Authoriz
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void saveAuthorizationRequest(AuthorizationRequestAttributes authorizationRequest, HttpServletRequest request,
|
public void saveAuthorizationRequest(AuthorizationRequestAttributes authorizationRequest, HttpServletRequest request,
|
||||||
HttpServletResponse response) {
|
HttpServletResponse response) {
|
||||||
if (authorizationRequest == null) {
|
if (authorizationRequest == null) {
|
||||||
this.removeAuthorizationRequest(request);
|
this.removeAuthorizationRequest(request);
|
||||||
return;
|
return;
|
||||||
|
@ -230,7 +230,7 @@ public class AuthorizationCodeAuthenticationProcessingFilterTests {
|
|||||||
|
|
||||||
private void setupAuthorizationRequest(AuthorizationRequestRepository authorizationRequestRepository,
|
private void setupAuthorizationRequest(AuthorizationRequestRepository authorizationRequestRepository,
|
||||||
HttpServletRequest request,
|
HttpServletRequest request,
|
||||||
HttpServletResponse response,
|
HttpServletResponse response,
|
||||||
ClientRegistration clientRegistration,
|
ClientRegistration clientRegistration,
|
||||||
String state) {
|
String state) {
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ public class AuthenticationPrincipalArgumentResolver extends HandlerMethodArgume
|
|||||||
* @return the {@link Annotation} that was found or null.
|
* @return the {@link Annotation} that was found or null.
|
||||||
*/
|
*/
|
||||||
private <T extends Annotation> T findMethodAnnotation(Class<T> annotationClass,
|
private <T extends Annotation> T findMethodAnnotation(Class<T> annotationClass,
|
||||||
MethodParameter parameter) {
|
MethodParameter parameter) {
|
||||||
T annotation = parameter.getParameterAnnotation(annotationClass);
|
T annotation = parameter.getParameterAnnotation(annotationClass);
|
||||||
if (annotation != null) {
|
if (annotation != null) {
|
||||||
return annotation;
|
return annotation;
|
||||||
|
@ -438,7 +438,7 @@ public class ResolvableMethod {
|
|||||||
* @param generics optional extra generic types
|
* @param generics optional extra generic types
|
||||||
*/
|
*/
|
||||||
public MethodParameter resolveReturnType(Class<?> returnType, ResolvableType generic,
|
public MethodParameter resolveReturnType(Class<?> returnType, ResolvableType generic,
|
||||||
ResolvableType... generics) {
|
ResolvableType... generics) {
|
||||||
|
|
||||||
return returning(returnType, generic, generics).build().returnType();
|
return returning(returnType, generic, generics).build().returnType();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user