
Package org.hl7.fhir.dstu3.model
Class Signature
java.lang.Object
org.hl7.fhir.dstu3.model.Base
org.hl7.fhir.dstu3.model.Element
org.hl7.fhir.dstu3.model.Type
org.hl7.fhir.dstu3.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 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Base64BinaryTypeThe base64 encoding of the Signature content.protected CodeTypeA mime type that indicates the technical format of the signature.protected TypeA reference to an application-usable description of the identity that is represented by the signature.An indication of the reason that the entity signed this document.protected InstantTypeWhen the digital signature was signed.protected TypeA reference to an application-usable description of the identity that signed (e.g. the signature used their private key). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddType()copy()booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()byte[]getBlob()getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) getType()String[]getTypesForProperty(int hash, String name) getWhen()getWho()booleanhasBlob()booleanbooleanbooleanbooleanbooleanbooleanbooleanhasType()booleanhasWhen()booleanbooleanhasWho()booleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setBlob(byte[] value) setBlobElement(Base64BinaryType value) setContentType(String value) setContentTypeElement(CodeType value) setOnBehalfOf(Type value) setProperty(int hash, String name, Base value) setProperty(String name, Base value) setWhenElement(InstantType value) protected SignatureMethods inherited from class org.hl7.fhir.dstu3.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElementMethods inherited from class org.hl7.fhir.dstu3.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods 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). -
onBehalfOf
A reference to an application-usable description of the identity that is represented by the signature. -
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, etc. -
blob
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
thisfor 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).)
-
getWhoUriType
- Returns:
who(A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasWhoUriType
-
getWhoReference
- Returns:
who(A reference to an application-usable description of the identity that signed (e.g. the signature used their private key).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasWhoReference
-
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).)- Throws:
org.hl7.fhir.exceptions.FHIRFormatError
-
getOnBehalfOf
- Returns:
onBehalfOf(A reference to an application-usable description of the identity that is represented by the signature.)
-
getOnBehalfOfUriType
- Returns:
onBehalfOf(A reference to an application-usable description of the identity that is represented by the signature.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasOnBehalfOfUriType
-
getOnBehalfOfReference
- Returns:
onBehalfOf(A reference to an application-usable description of the identity that is represented by the signature.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasOnBehalfOfReference
-
hasOnBehalfOf
-
setOnBehalfOf
- Parameters:
value-onBehalfOf(A reference to an application-usable description of the identity that is represented by the signature.)- Throws:
org.hl7.fhir.exceptions.FHIRFormatError
-
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, etc.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
hasContentTypeElement
-
hasContentType
-
setContentTypeElement
- 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, etc.). This is the underlying object with id, value and extensions. The accessor "getContentType" gives direct access to the value
-
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, etc.
-
setContentType
- 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, etc.
-
getBlobElement
- Returns:
blob(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 "getBlob" gives direct access to the value
-
hasBlobElement
-
hasBlob
-
setBlobElement
- Parameters:
value-blob(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 "getBlob" gives direct access to the value
-
getBlob
- Returns:
- The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.
-
setBlob
- Parameters:
value- The base64 encoding of the Signature content. When signature is not recorded electronically this element would be empty.
-
listChildren
- Overrides:
listChildrenin classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classElement
-
equalsShallow
- Overrides:
equalsShallowin classElement
-
isEmpty
-