Package org.hl7.fhir.dstu2.model
Class Signature
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.Element
-
- org.hl7.fhir.dstu2.model.Type
-
- org.hl7.fhir.dstu2.model.Signature
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.ICompositeType
public class Signature extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
A digital signature along with supporting context. The signature may be electronic/cryptographic in nature, or a graphical image representing a hand-written signature, or a signature process. Different Signature approaches have different utilities.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Base64BinaryTypeblobThe base64 encoding of the Signature content.protected CodeTypecontentTypeA mime type that indicates the technical format of the signature.protected List<Coding>typeAn indication of the reason that the entity signed this document.protected InstantTypewhenWhen the digital signature was signed.protected TypewhoA reference to an application-usable description of the person that signed the certificate (e.g.
-
Constructor Summary
Constructors Constructor Description Signature()Signature(InstantType when, Type who, CodeType contentType, Base64BinaryType blob)
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
type
protected List<Coding> 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
protected InstantType when
When the digital signature was signed.
-
who
protected Type who
A reference to an application-usable description of the person that signed the certificate (e.g. the signature used their private key).
-
contentType
protected CodeType contentType
A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jwt for JWT, and image/* for a graphical image of a signature.
-
blob
protected Base64BinaryType blob
The base64 encoding of the Signature content.
-
-
Constructor Detail
-
Signature
public Signature()
-
Signature
public Signature(InstantType when, Type who, CodeType contentType, Base64BinaryType blob)
-
-
Method Detail
-
getType
public List<Coding> getType()
- Returns:
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.)
-
hasType
public boolean hasType()
-
addType
public Coding addType()
- Returns:
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.)
-
getWhenElement
public InstantType getWhenElement()
- Returns:
when(When the digital signature was signed.). This is the underlying object with id, value and extensions. The accessor "getWhen" gives direct access to the value
-
hasWhenElement
public boolean hasWhenElement()
-
hasWhen
public boolean hasWhen()
-
setWhenElement
public Signature setWhenElement(InstantType value)
- Parameters:
value-when(When the digital signature was signed.). This is the underlying object with id, value and extensions. The accessor "getWhen" gives direct access to the value
-
setWhen
public Signature setWhen(Date value)
- Parameters:
value- When the digital signature was signed.
-
getWho
public Type getWho()
- Returns:
who(A reference to an application-usable description of the person that signed the certificate (e.g. the signature used their private key).)
-
getWhoUriType
public UriType getWhoUriType() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
who(A reference to an application-usable description of the person that signed the certificate (e.g. the signature used their private key).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasWhoUriType
public boolean hasWhoUriType()
-
getWhoReference
public Reference getWhoReference() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
who(A reference to an application-usable description of the person that signed the certificate (e.g. the signature used their private key).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasWhoReference
public boolean hasWhoReference()
-
hasWho
public boolean hasWho()
-
setWho
public Signature setWho(Type value)
- Parameters:
value-who(A reference to an application-usable description of the person that signed the certificate (e.g. the signature used their private key).)
-
getContentTypeElement
public CodeType getContentTypeElement()
- Returns:
contentType(A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jwt for JWT, and image/* for a graphical image of a signature.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
hasContentTypeElement
public boolean hasContentTypeElement()
-
hasContentType
public boolean hasContentType()
-
setContentTypeElement
public Signature setContentTypeElement(CodeType value)
- Parameters:
value-contentType(A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jwt for JWT, and image/* for a graphical image of a signature.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
getContentType
public String getContentType()
- Returns:
- A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jwt for JWT, and image/* for a graphical image of a signature.
-
setContentType
public Signature setContentType(String value)
- Parameters:
value- A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jwt for JWT, and image/* for a graphical image of a signature.
-
getBlobElement
public Base64BinaryType getBlobElement()
- Returns:
blob(The base64 encoding of the Signature content.). This is the underlying object with id, value and extensions. The accessor "getBlob" gives direct access to the value
-
hasBlobElement
public boolean hasBlobElement()
-
hasBlob
public boolean hasBlob()
-
setBlobElement
public Signature setBlobElement(Base64BinaryType value)
- Parameters:
value-blob(The base64 encoding of the Signature content.). This is the underlying object with id, value and extensions. The accessor "getBlob" gives direct access to the value
-
getBlob
public byte[] getBlob()
- Returns:
- The base64 encoding of the Signature content.
-
setBlob
public Signature setBlob(byte[] value)
- Parameters:
value- The base64 encoding of the Signature content.
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classElement
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classElement
-
-