public class ExtendedMetadataDelegate extends AbstractMetadataDelegate implements ExtendedMetadataProvider
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
ExtendedMetadataDelegate(org.opensaml.saml2.metadata.provider.MetadataProvider delegate)
Uses provider for normal entity data, for each entity available in the delegate returns given defaults.
|
ExtendedMetadataDelegate(org.opensaml.saml2.metadata.provider.MetadataProvider delegate,
ExtendedMetadata defaultMetadata)
Uses provider for normal entity data, for each entity available in the delegate returns given defaults.
|
ExtendedMetadataDelegate(org.opensaml.saml2.metadata.provider.MetadataProvider delegate,
ExtendedMetadata defaultMetadata,
Map<String,ExtendedMetadata> extendedMetadataMap)
Uses provider for normal entity data, tries to locate extended metadata by search in the map, in case it's not found
uses the default.
|
ExtendedMetadataDelegate(org.opensaml.saml2.metadata.provider.MetadataProvider delegate,
Map<String,ExtendedMetadata> extendedMetadataMap)
Uses provider for normal entity data, tries to locate extended metadata by search in the map.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Method destroys the metadata delegate.
|
ExtendedMetadata |
getExtendedMetadata(String entityID)
Tries to load extended metadata for the given entity.
|
Set<String> |
getMetadataTrustedKeys()
If set returns set of keys which can be used to verify whether signature of the metadata is trusted.
|
void |
initialize()
Method performs initialization of the provider it delegates to.
|
boolean |
isForceMetadataRevocationCheck() |
boolean |
isMetadataRequireSignature()
Flag indicating whether metadata must be signed.
|
boolean |
isMetadataTrustCheck() |
protected boolean |
isTrustFiltersInitialized() |
void |
setForceMetadataRevocationCheck(boolean forceMetadataRevocationCheck)
Determines whether check for certificate revocation should always be done as part of the PKIX validation.
|
void |
setMetadataRequireSignature(boolean metadataRequireSignature)
When set to true metadata from this provider should only be accepted when correctly signed and verified.
|
void |
setMetadataTrustCheck(boolean metadataTrustCheck) |
void |
setMetadataTrustedKeys(Set<String> metadataTrustedKeys)
Set of aliases of keys present in the KeyManager which can be used to verify whether signature on metadata entity
is trusted.
|
protected void |
setTrustFiltersInitialized(boolean trustFiltersInitialized) |
String |
toString() |
equals, getDelegate, getEntitiesDescriptor, getEntityDescriptor, getMetadata, getMetadataFilter, getObservers, getRole, getRole, hashCode, requireValidMetadata, setMetadataFilter, setRequireValidMetadata
public ExtendedMetadataDelegate(org.opensaml.saml2.metadata.provider.MetadataProvider delegate)
delegate
- delegate with available entitiespublic ExtendedMetadataDelegate(org.opensaml.saml2.metadata.provider.MetadataProvider delegate, ExtendedMetadata defaultMetadata)
delegate
- delegate with available entitiesdefaultMetadata
- default extended metadata, can be nullpublic ExtendedMetadataDelegate(org.opensaml.saml2.metadata.provider.MetadataProvider delegate, Map<String,ExtendedMetadata> extendedMetadataMap)
delegate
- delegate with available entitiesextendedMetadataMap
- map, can be nullpublic ExtendedMetadataDelegate(org.opensaml.saml2.metadata.provider.MetadataProvider delegate, ExtendedMetadata defaultMetadata, Map<String,ExtendedMetadata> extendedMetadataMap)
delegate
- delegate with available entitiesdefaultMetadata
- default extended metadata, can be nullextendedMetadataMap
- map, can be nullpublic ExtendedMetadata getExtendedMetadata(String entityID) throws org.opensaml.saml2.metadata.provider.MetadataProviderException
getExtendedMetadata
in interface ExtendedMetadataProvider
entityID
- entity to load metadata fororg.opensaml.saml2.metadata.provider.MetadataProviderException
- errorpublic void initialize() throws org.opensaml.saml2.metadata.provider.MetadataProviderException
org.opensaml.saml2.metadata.provider.MetadataProviderException
- in case initialization failspublic void destroy()
public Set<String> getMetadataTrustedKeys()
By default the value is null.
public void setMetadataTrustedKeys(Set<String> metadataTrustedKeys)
metadataTrustedKeys
- keys or nullpublic boolean isMetadataRequireSignature()
By default signature is not required.
public void setMetadataRequireSignature(boolean metadataRequireSignature)
metadataRequireSignature
- flag to setpublic boolean isMetadataTrustCheck()
public void setMetadataTrustCheck(boolean metadataTrustCheck)
public boolean isForceMetadataRevocationCheck()
public void setForceMetadataRevocationCheck(boolean forceMetadataRevocationCheck)
When set to false revocation is only performed when MetadataManager includes CRLs
forceMetadataRevocationCheck
- revocation flagprotected boolean isTrustFiltersInitialized()
protected void setTrustFiltersInitialized(boolean trustFiltersInitialized)