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

com.github.ulisesbocchio.spring.boot.security.saml.properties.KeyManagerProperties Maven / Gradle / Ivy

Go to download

Eases Integration between Spring Boot and spring-security-saml through properties and adapters

The newest version!
package com.github.ulisesbocchio.spring.boot.security.saml.properties;

import lombok.Data;

import java.util.Collections;
import java.util.Map;
import java.util.Map.Entry;
import java.util.stream.Collectors;

import static java.util.stream.Collectors.toMap;

/**
 * Configuration Properties for {@link org.springframework.security.saml.key.KeyManager}
 *
 * @author Ulises Bocchio
 */
@Data
public class KeyManagerProperties {
    /**
     * Specify a PEM certificate location. Used in conjunction with privateKeyDerLocation.
     */
    String publicKeyPemLocation;

    /**
     * Specify a DER private key location. Used in conjunction with publicKeyPemLocation.
     */
    String privateKeyDerLocation;

    /**
     * The location of KeyStore resource. If used, privateKeyDerLocation and privateKeyDerLocation are ignored.
     */
    String storeLocation;

    /**
     * The KeyStore password. Not relevant when using privateKeyDerLocation and privateKeyDerLocation.
     */
    String storePass;

    /**
     * They KeyStore private key passwords by key name.
     */
    Map keyPasswords = Collections.singletonMap("localhost", "").entrySet().stream().collect(toMap(Entry::getKey, Entry::getValue));

    /**
     * The default key name to use for encryption.
     */
    String defaultKey = "localhost";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy