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

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

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

import java.security.KeyPair;
import java.security.cert.X509Certificate;
import java.util.List;

public class IdaKeyStore {
    private final X509Certificate signingCertificate;
    private final KeyPair signingKeyPair;
    private final List encryptionKeyPairs;

    public IdaKeyStore(KeyPair signingKeyPair, List encryptionKeyPairs) {
        this(null, signingKeyPair, encryptionKeyPairs);
    }

    public IdaKeyStore(X509Certificate signingCertificate, KeyPair signingKeyPair, List encryptionKeyPairs) {
        this.signingCertificate = signingCertificate;
        this.signingKeyPair = signingKeyPair;
        this.encryptionKeyPairs = encryptionKeyPairs;
    }

    public KeyPair getSigningKeyPair() {
        return signingKeyPair;
    }

    public List getEncryptionKeyPairs() {
        return encryptionKeyPairs;
    }

    public X509Certificate getSigningCertificate() {
        return signingCertificate;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy