@Service public class ServiceRegistryProviderService extends Object implements ServiceProviderService, IdentityProviderService, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| Constructor and Description |
|---|
ServiceRegistryProviderService() |
| Modifier and Type | Method and Description |
|---|---|
static IdentityProvider |
buildIdentityProviderByMetadata(EntityMetadata metadata)
Create a IdentityProvider and inflate it with the given metadata attributes.
|
ServiceProvider |
buildServiceProviderByMetadata(EntityMetadata metadata,
boolean includeArps)
Create a ServiceProvider and inflate it with the given metadata attributes.
|
static ContactPersonType |
contactPersonTypeByJanusContactType(Contact.Type contactType)
Convert a Janus contact type to a ServiceProvider's ContactPersonType.
|
List<IdentityProvider> |
getAllIdentityProviders()
Get a list of all idps
|
List<ServiceProvider> |
getAllServiceProviders(boolean includeArps)
Get a list of all available Service Providers (IDP independent).
|
List<ServiceProvider> |
getAllServiceProviders(String idpId)
Get a list of all available Service Providers for the given idpId.
|
List<ServiceProvider> |
getAllServiceProvidersRateLimited(long rateDelay) |
Optional<IdentityProvider> |
getIdentityProvider(String idpEntityId)
Get an identity provider by its id.
|
List<IdentityProvider> |
getInstituteIdentityProviders(String instituteId)
Get a list of all idps that have the same instituteId as the given one.
|
List<IdentityProvider> |
getLinkedIdentityProviders(String spId)
Get a list of all idps connected to a SP
|
List<String> |
getLinkedServiceProviderIDs(String idpId)
Get a list of all SP identifiers linked to the Idp
|
ServiceProvider |
getServiceProvider(String spEntityId)
Get a
ServiceProvider by its entity ID, without a idpEntityId |
ServiceProvider |
getServiceProvider(String spEntityId,
String idpEntityId)
Get a
ServiceProvider by its entity ID. |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent contextRefreshedEvent) |
void |
refreshExampleSingleTenants() |
void |
setJanusClient(Janus janusClient) |
void |
setSingleTenantsConfigPath(String singleTenantsConfigPath) |
public List<ServiceProvider> getAllServiceProviders(String idpId)
ServiceProviderServicegetAllServiceProviders in interface ServiceProviderServiceidpId - the IDP entity ID to filter onServiceProviderpublic List<ServiceProvider> getAllServiceProviders(boolean includeArps)
ServiceProviderServicegetAllServiceProviders in interface ServiceProviderServiceServiceProviderpublic List<ServiceProvider> getAllServiceProvidersRateLimited(long rateDelay)
getAllServiceProvidersRateLimited in interface ServiceProviderServicepublic void refreshExampleSingleTenants()
refreshExampleSingleTenants in interface ServiceProviderServicepublic List<String> getLinkedServiceProviderIDs(String idpId)
IdentityProviderServicegetLinkedServiceProviderIDs in interface IdentityProviderServicepublic ServiceProvider getServiceProvider(String spEntityId, String idpEntityId)
ServiceProviderServiceServiceProvider by its entity ID.getServiceProvider in interface ServiceProviderServicespEntityId - the entity id of the ServiceProvideridpEntityId - the entity id of the Identity Provider.ServiceProvider object.public ServiceProvider getServiceProvider(String spEntityId)
ServiceProviderServiceServiceProvider by its entity ID, without a idpEntityIdgetServiceProvider in interface ServiceProviderServicespEntityId - the entity id of the ServiceProviderServiceProvider object.public ServiceProvider buildServiceProviderByMetadata(EntityMetadata metadata, boolean includeArps)
metadata - Janus metadataServiceProviderpublic static IdentityProvider buildIdentityProviderByMetadata(EntityMetadata metadata)
metadata - Janus metadataIdentityProviderpublic static ContactPersonType contactPersonTypeByJanusContactType(Contact.Type contactType)
contactType - the Janus typeContactPersonTypeIllegalArgumentException - in case no match can be made.public Optional<IdentityProvider> getIdentityProvider(String idpEntityId)
IdentityProviderServicegetIdentityProvider in interface IdentityProviderServiceidpEntityId - the id.public List<IdentityProvider> getInstituteIdentityProviders(String instituteId)
IdentityProviderServicegetInstituteIdentityProviders in interface IdentityProviderServiceinstituteId - the instituteIdpublic List<IdentityProvider> getAllIdentityProviders()
IdentityProviderServicegetAllIdentityProviders in interface IdentityProviderServicepublic List<IdentityProvider> getLinkedIdentityProviders(String spId)
IdentityProviderServicegetLinkedIdentityProviders in interface IdentityProviderServicepublic void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent contextRefreshedEvent)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>public void setJanusClient(Janus janusClient)
public void setSingleTenantsConfigPath(String singleTenantsConfigPath)
Copyright © 2012–2016 Pivotal Software, Inc.. All rights reserved.