removed x509 publishing from client lib

pull/334/head
Justin Richer 2013-05-02 10:59:15 -04:00
parent 8afab04544
commit 5910d29472
3 changed files with 2 additions and 60 deletions

View File

@ -33,7 +33,7 @@ public class ClientKeyPublisher implements BeanDefinitionRegistryPostProcessor {
private String jwkViewName = "jwkKeyList"; private String jwkViewName = "jwkKeyList";
/** /**
* If either the jwkPublishUrl or x509PublishUrl fields are set on this bean, set up a listener on that URL to publish keys. * If the jwkPublishUrl field is set on this bean, set up a listener on that URL to publish keys.
*/ */
@Override @Override
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {

View File

@ -18,7 +18,6 @@ import org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMappi
public class ClientKeyPublisherMapping extends RequestMappingInfoHandlerMapping { public class ClientKeyPublisherMapping extends RequestMappingInfoHandlerMapping {
private String jwkPublishUrl; private String jwkPublishUrl;
private String x509PublishUrl;
/* (non-Javadoc) /* (non-Javadoc)
* @see org.springframework.web.servlet.handler.AbstractHandlerMethodMapping#isHandler(java.lang.Class) * @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 "jwkKeyPublish" method to our jwkPublishUrl.
* Map the "x509KeyPublish" method to our x509PublishUrl.
*/ */
@Override @Override
protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) { protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) {
@ -44,15 +42,6 @@ public class ClientKeyPublisherMapping extends RequestMappingInfoHandlerMapping
null, null,
null, 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 { } else {
return null; return null;
} }
@ -73,18 +62,4 @@ public class ClientKeyPublisherMapping extends RequestMappingInfoHandlerMapping
this.jwkPublishUrl = jwkPublishUrl; 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;
}
} }

View File

@ -21,13 +21,10 @@ public class JwkViewResolver implements ViewResolver, Ordered {
private String jwkViewName = "jwkKeyList"; private String jwkViewName = "jwkKeyList";
private View jwk; private View jwk;
private String x509ViewName = "x509certs";
private View x509;
private int order = HIGHEST_PRECEDENCE; // highest precedence, most specific -- avoids hitting the catch-all view resolvers private int order = HIGHEST_PRECEDENCE; // highest precedence, most specific -- avoids hitting the catch-all view resolvers
/** /**
* Map "jwkKeyList" to the jwk property and "x509certs" to the x509 property on this bean. * Map "jwkKeyList" to the jwk property on this bean.
* Everything else returns null * Everything else returns null
*/ */
@Override @Override
@ -35,8 +32,6 @@ public class JwkViewResolver implements ViewResolver, Ordered {
if (viewName != null) { if (viewName != null) {
if (viewName.equals(getJwkViewName())) { if (viewName.equals(getJwkViewName())) {
return getJwk(); return getJwk();
} else if (viewName.equals(getX509ViewName())) {
return getX509();
} else { } else {
return null; return null;
} }
@ -45,20 +40,6 @@ public class JwkViewResolver implements ViewResolver, Ordered {
} }
} }
/**
* @return the x509
*/
public View getX509() {
return x509;
}
/**
* @param x509 the x509 to set
*/
public void setX509(View x509) {
this.x509 = x509;
}
/** /**
* @return the jwk * @return the jwk
*/ */
@ -102,18 +83,4 @@ public class JwkViewResolver implements ViewResolver, Ordered {
this.jwkViewName = jwkViewName; this.jwkViewName = jwkViewName;
} }
/**
* @return the x509ViewName
*/
public String getX509ViewName() {
return x509ViewName;
}
/**
* @param x509ViewName the x509ViewName to set
*/
public void setX509ViewName(String x509ViewName) {
this.x509ViewName = x509ViewName;
}
} }