@@ -0,0 +1,1035 @@
+/*%0A * Copyright 2015 Hewlett-Packard Development Company, L.P.%0A * Licensed under the MIT License (the %22License%22); you may not use this file except in compliance with the License.%0A */%0A%0Apackage com.hp.autonomy.hod.sso;%0A%0Aimport com.hp.autonomy.hod.client.token.TokenProxy;%0Aimport com.hp.autonomy.hod.client.token.TokenProxyService;%0Aimport org.springframework.security.core.Authentication;%0Aimport org.springframework.security.core.context.SecurityContextHolder;%0A%0A/**%0A * %7B@link TokenProxyService%7D which retrieves the token proxy from the Spring Security Context if the stored%0A * authentication is a %7B@link HodAuthentication%7D.%0A */%0Apublic class SpringSecurityTokenProxyService implements TokenProxyService %7B%0A%0A    @Override%0A    public TokenProxy getTokenProxy() %7B%0A        final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();%0A%0A        if (!(authentication instanceof HodAuthentication)) %7B%0A            return null;%0A        %7D%0A%0A        return ((HodAuthentication) authentication).getTokenProxy();%0A    %7D%0A%0A%7D%0A

Bring in the SpringSecurityTokenProxyService. [rev: matthew.gordon]