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

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

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

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.security.KeyStore;

public class FileBackedTrustStoreConfiguration extends TrustStoreConfiguration {

    @NotNull
    @Valid
    @JsonProperty
    @JsonAlias({ "path", "trustStorePath", "store" })
    private String store;


    @Override
    public KeyStore getTrustStore() {
        return new KeyStoreLoader().load(store, trustStorePassword);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy