public Endpoint getEndpoint(ServiceMetadata serviceMetadata, ProcessIdentifier processIdentifier, TransportProfile... transportProfiles) throws PeppolSecurityException, EndpointNotFoundException { Endpoint endpoint = serviceMetadata.getEndpoint(processIdentifier, transportProfiles); validator.validate(Service.AP, endpoint.getCertificate()); return endpoint; }
httpPost.addHeader(As2Header.AS2_FROM, fromIdentifier); httpPost.setHeader(As2Header.AS2_TO, CertificateUtils.extractCommonName( transmissionRequest.getEndpoint().getCertificate())); httpPost.addHeader(As2Header.DISPOSITION_NOTIFICATION_TO, notificationAddress); httpPost.addHeader(As2Header.DISPOSITION_NOTIFICATION_OPTIONS,
httpPost.addHeader(As2Header.AS2_FROM, fromIdentifier); httpPost.setHeader(As2Header.AS2_TO, CertificateUtils.extractCommonName( transmissionRequest.getEndpoint().getCertificate())); httpPost.addHeader(As2Header.DISPOSITION_NOTIFICATION_TO, notificationAddress); httpPost.addHeader(As2Header.DISPOSITION_NOTIFICATION_OPTIONS,
message.validate(transmissionRequest.getEndpoint().getCertificate()); } catch (OxalisAs2Exception e) { throw new OxalisTransmissionException("Unable to parse received MDN.", e);
message.validate(transmissionRequest.getEndpoint().getCertificate()); } catch (OxalisAs2Exception e) { throw new OxalisTransmissionException("Unable to parse received MDN.", e);
if (transmissionRequest.getEndpoint().getCertificate() != null) { String accessPointIdentifierValue = CertificateUtils .extractCommonName(transmissionRequest.getEndpoint().getCertificate()); builder.channel(new ChannelId(accessPointIdentifierValue)); } else {
if (transmissionRequest.getEndpoint().getCertificate() != null) { String accessPointIdentifierValue = CertificateUtils .extractCommonName(transmissionRequest.getEndpoint().getCertificate()); builder.channel(new ChannelId(accessPointIdentifierValue)); } else {
if (transmissionRequest.getEndpoint().getCertificate() == null) throw new OxalisTransmissionException("Certificate of receiving access point is not provided."); certificateValidator.validate(Service.AP, transmissionRequest.getEndpoint().getCertificate(), root); } else {