Package org.hl7.fhir.r4.model
Class Signature
java.lang.Object
org.hl7.fhir.r4.model.Base
org.hl7.fhir.r4.model.Element
org.hl7.fhir.r4.model.Type
org.hl7.fhir.r4.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
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.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Base64BinaryType
The base64 encoding of the Signature content.protected Reference
A reference to an application-usable description of the identity that is represented by the signature.protected Resource
The actual object that is the target of the reference (A reference to an application-usable description of the identity that is represented by the signature.)protected CodeType
A mime type that indicates the technical format of the signature.protected CodeType
A mime type that indicates the technical format of the target resources signed by the signature.An indication of the reason that the entity signed this document.protected InstantType
When the digital signature was signed.protected Reference
A reference to an application-usable description of the identity that signed (e.g.protected Resource
The actual object that is the target of the reference (A reference to an application-usable description of the identity that signed (e.g. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddType()
copy()
void
copyValues
(Signature dst) boolean
equalsDeep
(Base other_) boolean
equalsShallow
(Base other_) fhirType()
byte[]
getData()
getNamedProperty
(int _hash, String _name, boolean _checkValid) Base[]
getProperty
(int hash, String name, boolean checkValid) getType()
String[]
getTypesForProperty
(int hash, String name) getWhen()
getWho()
boolean
hasData()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
hasType()
boolean
hasWhen()
boolean
boolean
hasWho()
boolean
isEmpty()
protected void
listChildren
(List<Property> children) makeProperty
(int hash, String name) void
removeChild
(String name, Base value) setData
(byte[] value) setDataElement
(Base64BinaryType value) setOnBehalfOf
(Reference value) setOnBehalfOfTarget
(Resource value) setProperty
(int hash, String name, Base value) setProperty
(String name, Base value) setSigFormat
(String value) setSigFormatElement
(CodeType value) setTargetFormat
(String value) setTargetFormatElement
(CodeType value) setWhenElement
(InstantType value) setWhoTarget
(Resource value) protected Signature
Methods inherited from class org.hl7.fhir.r4.model.Element
addExtension, addExtension, addExtension, copyExtensions, copyNewExtensions, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
Field Details
-
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. -
who
A reference to an application-usable description of the identity that signed (e.g. the signature used their private key). -
whoTarget
The actual object that is the target of the reference (A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).) -
onBehalfOf
A reference to an application-usable description of the identity that is represented by the signature. -
onBehalfOfTarget
The actual object that is the target of the reference (A reference to an application-usable description of the identity that is represented by the signature.) -
targetFormat
A mime type that indicates the technical format of the target resources signed by the signature. -
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. -
data
The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.
-
-
Constructor Details
-
Signature
public Signature()Constructor -
Signature
Constructor
-
-
Method Details
-
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.)
-
setType
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasType
-
addType
-
addType
-
getTypeFirstRep
- Returns:
- The first repetition of repeating field
type
, creating it if it does not already exist
-
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
-
hasWhen
-
setWhenElement
- 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
-
getWhen
- Returns:
- When the digital signature was signed.
-
setWhen
- Parameters:
value
- When the digital signature was signed.
-
getWho
- Returns:
who
(A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).)
-
hasWho
-
setWho
- Parameters:
value
-who
(A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).)
-
getWhoTarget
- Returns:
who
The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).)
-
setWhoTarget
- Parameters:
value
-who
The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).)
-
getOnBehalfOf
- Returns:
onBehalfOf
(A reference to an application-usable description of the identity that is represented by the signature.)
-
hasOnBehalfOf
-
setOnBehalfOf
- Parameters:
value
-onBehalfOf
(A reference to an application-usable description of the identity that is represented by the signature.)
-
getOnBehalfOfTarget
- Returns:
onBehalfOf
The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A reference to an application-usable description of the identity that is represented by the signature.)
-
setOnBehalfOfTarget
- Parameters:
value
-onBehalfOf
The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A reference to an application-usable description of the identity that is represented by the signature.)
-
getTargetFormatElement
- Returns:
targetFormat
(A mime type that indicates the technical format of the target resources signed by the signature.). This is the underlying object with id, value and extensions. The accessor "getTargetFormat" gives direct access to the value
-
hasTargetFormatElement
-
hasTargetFormat
-
setTargetFormatElement
- Parameters:
value
-targetFormat
(A mime type that indicates the technical format of the target resources signed by the signature.). This is the underlying object with id, value and extensions. The accessor "getTargetFormat" gives direct access to the value
-
getTargetFormat
- Returns:
- A mime type that indicates the technical format of the target resources signed by the signature.
-
setTargetFormat
- Parameters:
value
- A mime type that indicates the technical format of the target resources signed by the signature.
-
getSigFormatElement
- Returns:
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.). This is the underlying object with id, value and extensions. The accessor "getSigFormat" gives direct access to the value
-
hasSigFormatElement
-
hasSigFormat
-
setSigFormatElement
- Parameters:
value
-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.). This is the underlying object with id, value and extensions. The accessor "getSigFormat" gives direct access to the value
-
getSigFormat
- Returns:
- 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.
-
setSigFormat
- 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/jose for JWS, and image/* for a graphical image of a signature, etc.
-
getDataElement
- Returns:
data
(The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the value
-
hasDataElement
-
hasData
-
setDataElement
- Parameters:
value
-data
(The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.). This is the underlying object with id, value and extensions. The accessor "getData" gives direct access to the value
-
getData
- Returns:
- The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.
-
setData
- Parameters:
value
- The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.
-
listChildren
- Overrides:
listChildren
in classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
removeChild
- Overrides:
removeChild
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makeProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classElement
-
equalsShallow
- Overrides:
equalsShallow
in classElement
-
isEmpty
-