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 voidafterPropertiesSet()AuthenticationRequestcreateAuthenticationRequest(String principal, String proxyURI, org.springframework.http.HttpMethod method)URIFederationResponsefederateProxyURI(String userId, String proxyURI, org.springframework.http.HttpMethod method, AdaptiveAuthenticationExtraDataRequest params)ContentProvidergetCachedContentProvider(String providerId)URIPatterngetCachedURIPattern(String patternId)LoginResponsegetIdentityFromCert(String proxyURI, org.springframework.http.HttpMethod method, org.springframework.web.multipart.MultipartFile certContents)LoginResponsegetIdentityFromEncryptedCert(String proxyURI, org.springframework.http.HttpMethod method, String certWithInfo, String pass)URIFederationResponsegetMetadata(String proxyURI, org.springframework.http.HttpMethod method, AdaptiveAuthenticationExtraDataRequest params)StringprintCacheContents()voidsetApplicationContext(org.springframework.context.ApplicationContext ctx)<T extends AbstractPatternMetaValue>
booleansetPatternMeta(URIPattern pattern, AbstractMeta<T> meta)voidsweep()Placeholder for Spring to call via Quartz.
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin 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:SweepablePlaceholder for Spring to call via Quartz. Required for @Transactional sweeper methods.- Specified by:
sweepin interfaceSweepable- Specified by:
sweepin 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:
createAuthenticationRequestin interfaceURIFederationService- Throws:
BasicDataServiceException
-
getMetadata
public URIFederationResponse getMetadata(String proxyURI, org.springframework.http.HttpMethod method, AdaptiveAuthenticationExtraDataRequest params)
- Specified by:
getMetadatain interfaceURIFederationService
-
federateProxyURI
public URIFederationResponse federateProxyURI(String userId, String proxyURI, org.springframework.http.HttpMethod method, AdaptiveAuthenticationExtraDataRequest params)
- Specified by:
federateProxyURIin interfaceURIFederationService
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getCachedContentProvider
public ContentProvider getCachedContentProvider(String providerId)
- Specified by:
getCachedContentProviderin interfaceURIFederationService
-
getCachedURIPattern
public URIPattern getCachedURIPattern(String patternId)
- Specified by:
getCachedURIPatternin interfaceURIFederationService
-
getIdentityFromCert
public LoginResponse getIdentityFromCert(String proxyURI, org.springframework.http.HttpMethod method, org.springframework.web.multipart.MultipartFile certContents) throws BasicDataServiceException
- Specified by:
getIdentityFromCertin interfaceURIFederationService- Throws:
BasicDataServiceException
-
getIdentityFromEncryptedCert
public LoginResponse getIdentityFromEncryptedCert(String proxyURI, org.springframework.http.HttpMethod method, String certWithInfo, String pass) throws BasicDataServiceException
- Specified by:
getIdentityFromEncryptedCertin interfaceURIFederationService- Throws:
BasicDataServiceException
-
-