public static ServiceMetadata of(ParticipantIdentifier participantIdentifier, DocumentTypeIdentifier documentTypeIdentifier, List<ProcessMetadata<Endpoint>> processes) { return new ServiceMetadata(participantIdentifier, documentTypeIdentifier, processes); }
@Override public String toString() { return processIdentifier.toString(); } }
public static Header of(ParticipantIdentifier sender, ParticipantIdentifier receiver, ProcessIdentifier process, DocumentTypeIdentifier documentType, InstanceIdentifier identifier, InstanceType instanceType, Date creationTimestamp) { return new Header(sender, receiver, process, documentType, identifier, instanceType, creationTimestamp, null); }
@Override public void verify(Header header, Direction direction) { log.info("Direction: {} | Sender/Receiver: {}/{} | Instance identifier: {}", direction, header.getSender().getIdentifier(), header.getReceiver().getIdentifier(), header.getIdentifier()); } }
public static AttributedElectronicAddressType createElectronicAddressType(ParticipantIdentifier participant) { AttributedElectronicAddressType o = new AttributedElectronicAddressType(); o.setValue(participant.getIdentifier()); o.setScheme(participant.getScheme().getIdentifier()); return o; }
public static ParticipantIdentifier of(String value) { return of(value, DEFAULT_SCHEME); }
@Override public String toString() { return documentTypeIdentifier.toString(); }
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; }
public static <T> Signed<T> of(T content, X509Certificate certificate) { return of(content, certificate, null); }
public Header documentType(DocumentTypeIdentifier documentType) { return copy(h -> h.documentType = documentType); }
public static Endpoint of(TransportProfile transportProfile, URI address, X509Certificate certificate, Period period) { return new Endpoint(transportProfile, address, certificate, period); }
@Override public <S> Signed<S> ofSubset(S s) { return new Signed<>(s, certificate, timestamp); }
static Digest of(DigestMethod method, byte[] value) { return new DefaultDigest(method, value); }
public static ProcessIdentifier of(String identifier) { return new ProcessIdentifier(identifier, DEFAULT_SCHEME); }
public static InstanceIdentifier of(String value) { return new InstanceIdentifier(value); }
@Override public String toString() { return documentTypeIdentifier.toString(); }
@Override public String toString() { return processIdentifier.toString(); } }
public static Header of(ParticipantIdentifier sender, ParticipantIdentifier receiver, ProcessIdentifier process, DocumentTypeIdentifier documentType) { return new Header(sender, receiver, process, documentType, null, null, null, null); }
public Header identifier(InstanceIdentifier identifier) { return copy(h -> h.identifier = identifier); }
@Override public String toString() { return processIdentifier.toString(); } }