Package org.openiam.esb.am.service.impl
Class URIFederationServiceImpl
- java.lang.Object
-
- org.openiam.esb.am.service.impl.URIFederationServiceImpl
-
- All Implemented Interfaces:
URIFederationService
,Sweepable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
@Service("uriFederationService") @DependsOn("springContextProvider") public class URIFederationServiceImpl extends Object implements URIFederationService, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, Sweepable
-
-
Constructor Summary
Constructors Constructor Description URIFederationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
AuthenticationRequest
createAuthenticationRequest(String principal, String proxyURI, org.springframework.http.HttpMethod method)
URIFederationResponse
federateProxyURI(String userId, String proxyURI, org.springframework.http.HttpMethod method, AdaptiveAuthenticationExtraDataRequest params)
ContentProvider
getCachedContentProvider(String providerId)
URIPattern
getCachedURIPattern(String patternId)
LoginResponse
getIdentityFromCert(String proxyURI, org.springframework.http.HttpMethod method, org.springframework.web.multipart.MultipartFile certContents)
LoginResponse
getIdentityFromEncryptedCert(String proxyURI, org.springframework.http.HttpMethod method, String certWithInfo, String pass)
URIFederationResponse
getMetadata(String proxyURI, org.springframework.http.HttpMethod method, AdaptiveAuthenticationExtraDataRequest params)
String
printCacheContents()
void
setApplicationContext(org.springframework.context.ApplicationContext ctx)
<T extends AbstractPatternMetaValue>
booleansetPatternMeta(URIPattern pattern, AbstractMeta<T> meta)
void
sweep()
Placeholder for Spring to call via Quartz.
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
setPatternMeta
public <T extends AbstractPatternMetaValue> boolean setPatternMeta(URIPattern pattern, AbstractMeta<T> meta)
-
sweep
@ManagedOperation(description="sweep the Content Provider Cache") @Scheduled(fixedRateString="${org.openiam.am.uri.federation.threadsweep}", initialDelay=0L) public void sweep()
Description copied from interface:Sweepable
Placeholder for Spring to call via Quartz. Required for @Transactional sweeper methods.- Specified by:
sweep
in interfaceSweepable
- Specified by:
sweep
in interfaceURIFederationService
-
printCacheContents
@ManagedOperation(description="Print Cache Contents") public String printCacheContents()
-
createAuthenticationRequest
public AuthenticationRequest createAuthenticationRequest(String principal, String proxyURI, org.springframework.http.HttpMethod method) throws BasicDataServiceException
- Specified by:
createAuthenticationRequest
in interfaceURIFederationService
- Throws:
BasicDataServiceException
-
getMetadata
public URIFederationResponse getMetadata(String proxyURI, org.springframework.http.HttpMethod method, AdaptiveAuthenticationExtraDataRequest params)
- Specified by:
getMetadata
in interfaceURIFederationService
-
federateProxyURI
public URIFederationResponse federateProxyURI(String userId, String proxyURI, org.springframework.http.HttpMethod method, AdaptiveAuthenticationExtraDataRequest params)
- Specified by:
federateProxyURI
in interfaceURIFederationService
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getCachedContentProvider
public ContentProvider getCachedContentProvider(String providerId)
- Specified by:
getCachedContentProvider
in interfaceURIFederationService
-
getCachedURIPattern
public URIPattern getCachedURIPattern(String patternId)
- Specified by:
getCachedURIPattern
in interfaceURIFederationService
-
getIdentityFromCert
public LoginResponse getIdentityFromCert(String proxyURI, org.springframework.http.HttpMethod method, org.springframework.web.multipart.MultipartFile certContents) throws BasicDataServiceException
- Specified by:
getIdentityFromCert
in interfaceURIFederationService
- Throws:
BasicDataServiceException
-
getIdentityFromEncryptedCert
public LoginResponse getIdentityFromEncryptedCert(String proxyURI, org.springframework.http.HttpMethod method, String certWithInfo, String pass) throws BasicDataServiceException
- Specified by:
getIdentityFromEncryptedCert
in interfaceURIFederationService
- Throws:
BasicDataServiceException
-
-