Package net.shibboleth.sp
Interface Application
- All Superinterfaces:
Component,IdentifiedComponent,InitializableComponent,Predicate<ProfileRequestContext>,RelyingPartyConfiguration,RelyingPartyConfigurationResolver,Resolver<RelyingPartyConfiguration,CriteriaSet>
- All Known Implementing Classes:
BasicAgent,BasicApplication
@ThreadSafe
public interface Application
extends RelyingPartyConfiguration, RelyingPartyConfigurationResolver
A collection of resources protected by the SP and treated as a unit for the purposes of
the configuration.
Most settings and services are associated with an instance of this interface either through instantiation or method inputs. Components and services that are not "SP-aware" are instead injected into and made accessible from this interface.
As a resolver, this interface MUST implement support for ProfileRequestContextCriterion.
It MAY support other types.
By exposing RelyingPartyConfiguration it acts as its own "default" instance of that interface
while also implementing resolution of overrides.
-
Method Summary
Modifier and TypeMethodDescriptionDedicated method to access application ID for explicitness.GetsAttributeFilterfor thisApplication.GetsAttributeResolverfor thisApplication.GetsAttributeTranscoderRegistryfor thisApplication.getAuthenticatingAuthority(ProfileRequestContext profileRequestContext) Gets the identifier of the authenticating authority (IdP, OP, etc.) to use for this application if not overridden.getDiscoveryService(ProfileRequestContext profileRequestContext) Gets the discovery service URL to use in the event a session initiator cannot be executed.getLogoutConsumers(ProfileRequestContext profileRequestContext) Gets an ordered list of logout consumer flows to attempt for this application.getLogoutInitiators(ProfileRequestContext profileRequestContext) Gets an ordered list of logout initiator flows to attempt for this application.<T extends ProtocolSupportService>
TgetProtocolSupportService(String protocol, Class<T> claz) Gets theProtocolSupportServicesubtype for a particular protocol.getSessionInitiators(ProfileRequestContext profileRequestContext) Gets an ordered list of session initiator flows to attempt for this application.Gets theStateManagerto use for thie application.getTokenConsumers(ProfileRequestContext profileRequestContext) Gets an ordered list of token consumer flows to attempt for this application.Methods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitializedMethods inherited from interface net.shibboleth.profile.relyingparty.RelyingPartyConfiguration
getIssuer, getProfileConfiguration, getProfileConfigurations, getSecurityConfiguration, isDetailedErrors, setResponderIdMethods inherited from interface net.shibboleth.profile.relyingparty.RelyingPartyConfigurationResolver
getEncryptionCredentials, getSigningCredentialsMethods inherited from interface net.shibboleth.shared.resolver.Resolver
resolve, resolveSingle
-
Method Details
-
getApplicationId
Dedicated method to access application ID for explicitness.- Returns:
- application ID
-
getAuthenticatingAuthority
@Nullable @NotEmpty String getAuthenticatingAuthority(@Nullable ProfileRequestContext profileRequestContext) Gets the identifier of the authenticating authority (IdP, OP, etc.) to use for this application if not overridden.- Parameters:
profileRequestContext- current profile request context- Returns:
- authenticating authority
-
getSessionInitiators
Gets an ordered list of session initiator flows to attempt for this application.- Parameters:
profileRequestContext- profile request context- Returns:
- ordered list of unprefixed flow IDs
-
getDiscoveryService
Gets the discovery service URL to use in the event a session initiator cannot be executed.In the absence of a value, the Hub will not attempt IdP discovery and session initiator requests that cannot be associated with a recognized authority to use will fail.
- Parameters:
profileRequestContext- profile request context- Returns:
- discovery service location, or null
-
getTokenConsumers
Gets an ordered list of token consumer flows to attempt for this application.- Parameters:
profileRequestContext- profile request context- Returns:
- ordered list of unprefixed flow IDs
-
getLogoutInitiators
Gets an ordered list of logout initiator flows to attempt for this application.- Parameters:
profileRequestContext- profile request context- Returns:
- ordered list of unprefixed flow IDs
-
getLogoutConsumers
Gets an ordered list of logout consumer flows to attempt for this application.- Parameters:
profileRequestContext- profile request context- Returns:
- ordered list of unprefixed flow IDs
-
getStateManager
Gets theStateManagerto use for thie application.- Returns:
- the manager to use
-
getAttributeTranscoderRegistry
GetsAttributeTranscoderRegistryfor thisApplication.- Returns:
- the attribute transcoder registry to use
-
getAttributeResolver
GetsAttributeResolverfor thisApplication.- Returns:
- the attribute resolver to use
-
getAttributeFilter
GetsAttributeFilterfor thisApplication.- Returns:
- the attribute filter to use
-
getProtocolSupportService
@Nullable <T extends ProtocolSupportService> T getProtocolSupportService(@Nonnull @NotEmpty String protocol, @Nonnull Class<T> claz) Gets theProtocolSupportServicesubtype for a particular protocol.- Type Parameters:
T- the type of service- Parameters:
protocol- protocol to fetchclaz- type to fetch- Returns:
- the corresponding service object or null
-