Class SignatureBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.core.model.Reference who,
                    java.util.Collection<com.babylonhealth.lit.core.model.Coding> _type,
                    java.time.ZonedDateTime when)
        Required fields for Signature
        Parameters:
        who - - A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).
        _type - - An indication of the reason that the entity signed this document. This may be explicitly included as part of the signature information and can be used when determining accountability for various actions concerning the document.
        when - - When the digital signature was signed.
    • Method Detail

      • withId

        public SignatureBuilder.Impl withId​(@NonNull
                                            @NonNull java.lang.String id)
        Parameters:
        id - - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
      • withData

        public SignatureBuilder.Impl withData​(@NonNull
                                              @lombok.NonNull byte[] data)
        Parameters:
        data - - The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.
      • withExtension

        public SignatureBuilder.Impl withExtension​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core.model.Extension... extension)
        Parameters:
        extension - - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
      • withExtension

        public SignatureBuilder.Impl withExtension​(@NonNull
                                                   @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
        Parameters:
        extension - - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
      • withSigFormat

        public SignatureBuilder.Impl withSigFormat​(@NonNull
                                                   @NonNull java.lang.String sigFormat)
        Parameters:
        sigFormat - - A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jose for JWS, and image/* for a graphical image of a signature, etc.
      • withOnBehalfOf

        public SignatureBuilder.Impl withOnBehalfOf​(@NonNull
                                                    @NonNull com.babylonhealth.lit.core.model.Reference onBehalfOf)
        Parameters:
        onBehalfOf - - A reference to an application-usable description of the identity that is represented by the signature.
      • withTargetFormat

        public SignatureBuilder.Impl withTargetFormat​(@NonNull
                                                      @NonNull java.lang.String targetFormat)
        Parameters:
        targetFormat - - A mime type that indicates the technical format of the target resources signed by the signature.