Package com.ibm.fhir.model.type
Class Signature
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.Signature
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class Signature extends Element
A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSignature.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Signature.Builderbuilder()booleanequals(Object obj)Base64BinarygetData()The base64 encoding of the Signature content.ReferencegetOnBehalfOf()A reference to an application-usable description of the identity that is represented by the signature.CodegetSigFormat()A mime type that indicates the technical format of the signature.CodegetTargetFormat()A mime type that indicates the technical format of the target resources signed by the signature.List<Coding>getType()An indication of the reason that the entity signed this document.InstantgetWhen()When the digital signature was signed.ReferencegetWho()A reference to an application-usable description of the identity that signed (e.g.booleanhasChildren()inthashCode()Signature.BuildertoBuilder()Create a new Builder from the contents of this Element
-
-
-
Method Detail
-
getType
public List<Coding> getType()
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.- Returns:
- An unmodifiable list containing immutable objects of type
Codingthat is non-empty.
-
getWhen
public Instant getWhen()
When the digital signature was signed.- Returns:
- An immutable object of type
Instantthat is non-null.
-
getWho
public Reference getWho()
A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).- Returns:
- An immutable object of type
Referencethat is non-null.
-
getOnBehalfOf
public Reference getOnBehalfOf()
A reference to an application-usable description of the identity that is represented by the signature.- Returns:
- An immutable object of type
Referencethat may be null.
-
getTargetFormat
public Code getTargetFormat()
A mime type that indicates the technical format of the target resources signed by the signature.- Returns:
- An immutable object of type
Codethat may be null.
-
getSigFormat
public Code getSigFormat()
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.- Returns:
- An immutable object of type
Codethat may be null.
-
getData
public Base64Binary getData()
The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.- Returns:
- An immutable object of type
Base64Binarythat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public Signature.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static Signature.Builder builder()
-
-