Search in sources :

Example 1 with CertificateDtoBuilder

use of uk.gov.ida.hub.samlsoapproxy.builders.CertificateDtoBuilder in project verify-hub by alphagov.

the class ConfigStubRule method setupStubForCertificates.

public void setupStubForCertificates(String issuer, String signingCertString, String encryptionCertString) throws JsonProcessingException {
    CertificateDto signingCertificate = new CertificateDtoBuilder().withIssuerId(issuer).withCertificate(signingCertString).withKeyUse(CertificateDto.KeyUse.Signing).build();
    CertificateDto encryptionCertificate = new CertificateDtoBuilder().withIssuerId(issuer).withCertificate(encryptionCertString).withKeyUse(CertificateDto.KeyUse.Encryption).build();
    registerStubForCertificates(issuer, signingCertificate, encryptionCertificate);
}
Also used : CertificateDto(uk.gov.ida.hub.samlsoapproxy.domain.CertificateDto) CertificateDtoBuilder(uk.gov.ida.hub.samlsoapproxy.builders.CertificateDtoBuilder)

Aggregations

CertificateDtoBuilder (uk.gov.ida.hub.samlsoapproxy.builders.CertificateDtoBuilder)1 CertificateDto (uk.gov.ida.hub.samlsoapproxy.domain.CertificateDto)1