public class MetadataCredentialResolver
extends org.opensaml.security.MetadataCredentialResolver
Modifier and Type | Field and Description |
---|---|
protected KeyManager |
keyManager
Key manager.
|
protected MetadataManager |
manager
Metadata manager.
|
Constructor and Description |
---|
MetadataCredentialResolver(MetadataManager metadataProvider,
KeyManager keyManager)
Creates new resolver.
|
Modifier and Type | Method and Description |
---|---|
protected Collection<org.opensaml.xml.security.credential.Credential> |
retrieveFromMetadata(String entityID,
QName role,
String protocol,
org.opensaml.xml.security.credential.UsageType usage)
Method tries to resolve all credentials for the given entityID.
|
void |
setUseExtendedMetadata(boolean useExtendedMetadata)
Flag indicating that certificates should be populated from fields signingKey, encryptionKey and tlsKey
in the ExtendedMetadata for the entity.
|
void |
setUseXmlMetadata(boolean useXmlMetadata)
Flag indicating that certificates should be populated from the XML metadata.
|
cacheCredentials, checkCriteriaRequirements, getKeyInfoCredentialResolver, getMetadataProvider, getReadWriteLock, getRoleDescriptors, matchUsage, resolveFromSource, retrieveFromCache, setKeyInfoCredentialResolver
isMeetAllCriteria, isUnevaluableSatisfies, resolve, setMeetAllCriteria, setUnevaluableSatisfies
protected MetadataManager manager
protected KeyManager keyManager
public MetadataCredentialResolver(MetadataManager metadataProvider, KeyManager keyManager)
metadataProvider
- metadata resolverkeyManager
- key mangerprotected Collection<org.opensaml.xml.security.credential.Credential> retrieveFromMetadata(String entityID, QName role, String protocol, org.opensaml.xml.security.credential.UsageType usage) throws org.opensaml.xml.security.SecurityException
retrieveFromMetadata
in class org.opensaml.security.MetadataCredentialResolver
entityID
- entity IDrole
- roleprotocol
- protocolusage
- usageorg.opensaml.xml.security.SecurityException
- errorpublic void setUseXmlMetadata(boolean useXmlMetadata)
useXmlMetadata
- flag indicating we should use XML metadatapublic void setUseExtendedMetadata(boolean useExtendedMetadata)
useExtendedMetadata
- flag indicating we should use extended metadataExtendedMetadata