com.github.ulisesbocchio.spring.boot.security.saml.properties.KeyManagerProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-security-saml Show documentation
Show all versions of spring-boot-security-saml Show documentation
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";
}