All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.gov.ida.saml.metadata.DisabledMetadataResolverRepository Maven / Gradle / Ivy

The newest version!
package uk.gov.ida.saml.metadata;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.nimbusds.jose.jwk.JWK;
import org.opensaml.saml.metadata.resolver.MetadataResolver;
import org.opensaml.xmlsec.signature.support.impl.ExplicitKeySignatureTrustEngine;

import java.security.cert.X509Certificate;
import java.util.List;
import java.util.Map;
import java.util.Optional;

public class DisabledMetadataResolverRepository implements MetadataResolverRepository{
    @Override
    public Optional getMetadataResolver(String entityId) {
        return Optional.empty();
    }

    @Override
    public List getResolverEntityIds() {
        return ImmutableList.of();
    }

    @Override
    public Optional getSignatureTrustEngine(String entityId) {
        return Optional.empty();
    }

    @Override
    public Map getMetadataResolvers() {
        return ImmutableMap.of();
    }

    @Override
    public List getTrustAnchorsEntityIds() {
        return ImmutableList.of();
    }

    @Override
    public void refresh() { }

    @Override
    public List sortCertsByDate(JWK trustAnchor) {
        return ImmutableList.of();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy