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);
}
Aggregations