Assert.notNull(keyManager, "Key manager must be set");
Assert.notNull(metadata, "Metadata must be set");
Assert.notNull(storageFactory, "MessageStorageFactory must be set");
if (metadataResolver == null) {
MetadataCredentialResolver resolver = new org.springframework.security.saml.trust.MetadataCredentialResolver(metadata, keyManager);
resolver.setMeetAllCriteria(false);
resolver.setUnevaluableSatisfies(true);
this.metadataResolver = resolver;
}
if (pkixResolver == null) {
pkixResolver = new PKIXInformationResolver(metadataResolver, metadata, keyManager);