|
|
|
@ -18,7 +18,6 @@ import org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMappi
|
|
|
|
|
public class ClientKeyPublisherMapping extends RequestMappingInfoHandlerMapping {
|
|
|
|
|
|
|
|
|
|
private String jwkPublishUrl;
|
|
|
|
|
private String x509PublishUrl;
|
|
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
|
* @see org.springframework.web.servlet.handler.AbstractHandlerMethodMapping#isHandler(java.lang.Class)
|
|
|
|
@ -30,7 +29,6 @@ public class ClientKeyPublisherMapping extends RequestMappingInfoHandlerMapping
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Map the "jwkKeyPublish" method to our jwkPublishUrl.
|
|
|
|
|
* Map the "x509KeyPublish" method to our x509PublishUrl.
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) {
|
|
|
|
@ -44,15 +42,6 @@ public class ClientKeyPublisherMapping extends RequestMappingInfoHandlerMapping
|
|
|
|
|
null,
|
|
|
|
|
null,
|
|
|
|
|
null);
|
|
|
|
|
} else if (method.getName().equals("publishClientx509") && getX509PublishUrl() != null) {
|
|
|
|
|
return new RequestMappingInfo(
|
|
|
|
|
new PatternsRequestCondition(new String[] {getX509PublishUrl()}, getUrlPathHelper(), getPathMatcher(), false, false),
|
|
|
|
|
null,
|
|
|
|
|
null,
|
|
|
|
|
null,
|
|
|
|
|
null,
|
|
|
|
|
null,
|
|
|
|
|
null);
|
|
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
@ -73,18 +62,4 @@ public class ClientKeyPublisherMapping extends RequestMappingInfoHandlerMapping
|
|
|
|
|
this.jwkPublishUrl = jwkPublishUrl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return the x509PublishUrl
|
|
|
|
|
*/
|
|
|
|
|
public String getX509PublishUrl() {
|
|
|
|
|
return x509PublishUrl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param x509PublishUrl the x509PublishUrl to set
|
|
|
|
|
*/
|
|
|
|
|
public void setX509PublishUrl(String x509PublishUrl) {
|
|
|
|
|
this.x509PublishUrl = x509PublishUrl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|