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

uk.gov.ida.saml.security.StringBackedMetadataResolver Maven / Gradle / Ivy

There is a newer version: 3.4.6-277
Show newest version
package uk.gov.ida.saml.security;

import org.opensaml.saml.metadata.resolver.impl.AbstractReloadingMetadataResolver;

public class StringBackedMetadataResolver extends AbstractReloadingMetadataResolver {
    private final String xml;

    public StringBackedMetadataResolver(String xml) {
        this.xml = xml;
    }

    @Override
    protected String getMetadataIdentifier() {
        return "metadata";
    }

    @Override
    protected byte[] fetchMetadata() {
        return xml.getBytes();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy