Interface MetadataPublishingProfileConfiguration
- All Superinterfaces:
Component,IdentifiedComponent,ProfileConfiguration
- All Known Implementing Classes:
MetadataPublishingProfileConfiguration
-
Field Summary
FieldsFields inherited from interface net.shibboleth.profile.config.ProfileConfiguration
DEFAULT_DISALLOWED_FEATURES -
Method Summary
Modifier and TypeMethodDescriptiongetCacheDuration(ProfileRequestContext profileRequestContext) Gets the optional value to set in the root element'scacehDurationattribute.getLifetime(ProfileRequestContext profileRequestContext) Gets the optional lifetime from which to compute and set the root element'svalidUntilattribute.getSigningCredential(ProfileRequestContext profileRequestContext) Gets an optionalCredentialto use to sign the metadata ifisSignMetadata(ProfileRequestContext)is true.getTemplatePath(ProfileRequestContext profileRequestContext) Gets the path to a template XML resource to source for the metadata.booleanisResolveKeys(ProfileRequestContext profileRequestContext) Gets whether to resolve signing and encryption keys from the configuredCredentialResolverto publish into the Velocity context if that feature is enabled.booleanisSignMetadata(ProfileRequestContext profileRequestContext) Gets whether to sign the metadata being published dynamically.booleanisUseVelocity(ProfileRequestContext profileRequestContext) Gets whether the template returned bygetTemplatePath(ProfileRequestContext)is evaluated by Velocity or returned directly.Methods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.profile.config.ProfileConfiguration
getDisallowedFeatures, getSecurityConfiguration, isFeatureDisallowed
-
Field Details
-
PROFILE_ID
ID for this profile configuration.- See Also:
-
-
Method Details
-
getTemplatePath
@ConfigurationSetting(name="templatePath") @Nullable @NotEmpty String getTemplatePath(@Nullable ProfileRequestContext profileRequestContext) Gets the path to a template XML resource to source for the metadata.Defaults to null, resulting in a query to the configured
MetadataResolverservice for the configured "issuer" value as entityID to obtain metadata loaded into the Hub.If set, the path is evaluated as a Velocity template with the following variables populated:
- agentID
- applicationID
- issuer
- entityID
- Parameters:
profileRequestContext- profile request context- Returns:
- templated path to XML resource to serve
-
isUseVelocity
@ConfigurationSetting(name="useVelocity") boolean isUseVelocity(@Nullable ProfileRequestContext profileRequestContext) Gets whether the template returned bygetTemplatePath(ProfileRequestContext)is evaluated by Velocity or returned directly.Defaults to false; only relevant if a template path is used. The same variables are populated in evaluating the template as described for
getTemplatePath(ProfileRequestContext).- Parameters:
profileRequestContext- profile request context- Returns:
- true iff Velocity should be applied to the template
-
isSignMetadata
@ConfigurationSetting(name="signMetadata") boolean isSignMetadata(@Nullable ProfileRequestContext profileRequestContext) Gets whether to sign the metadata being published dynamically.Defaults to false.
- Parameters:
profileRequestContext- profile request context- Returns:
- true iff the metadata should be signed in real time
-
getSigningCredential
@ConfigurationSetting(name="signingCredential") @Nullable Credential getSigningCredential(@Nullable ProfileRequestContext profileRequestContext) Gets an optionalCredentialto use to sign the metadata ifisSignMetadata(ProfileRequestContext)is true.If unset, the default configured service is used, resulting in effectively self-signed metadata using the same key used for SAML messages.
- Parameters:
profileRequestContext- profile request context- Returns:
- a signing credential or null
-
isResolveKeys
@ConfigurationSetting(name="resolveKeys") boolean isResolveKeys(@Nullable ProfileRequestContext profileRequestContext) Gets whether to resolve signing and encryption keys from the configuredCredentialResolverto publish into the Velocity context if that feature is enabled.Defaults to false.
If true, this does not automatically remove any existing
KeyDescriptorelements nor add any automatically, but provides the information to help do so.- Parameters:
profileRequestContext-- Returns:
- true iff the credentials should be resolved for Velocity to access
-
getLifetime
@ConfigurationSetting(name="lifetime") @Nullable @NonNegative Duration getLifetime(@Nullable ProfileRequestContext profileRequestContext) Gets the optional lifetime from which to compute and set the root element'svalidUntilattribute.Defaults to null.
Only applied if the root element's existing value would be longer.
- Parameters:
profileRequestContext- profile request context- Returns:
- the time added to the current timestamp to set, or null to leave as is
-
getCacheDuration
@ConfigurationSetting(name="cacheDuration") @Nullable @NonNegative Duration getCacheDuration(@Nullable ProfileRequestContext profileRequestContext) Gets the optional value to set in the root element'scacehDurationattribute.Defaults to null.
- Parameters:
profileRequestContext- profile request context- Returns:
- the cache duration, or null to leave as is
-