public class CertificateSignedFilePropertyType extends DerivedPropertyType<SignedFile> implements MarkerPathPropertyType
Modifier and Type | Field and Description |
---|---|
static String |
TYPE
The Typename of CertificateSignedFilePropertyType
|
Constructor and Description |
---|
CertificateSignedFilePropertyType(Property<File> signedFileProperty,
Property<Certificate> certificateProperty,
Property<byte[]> signatureProperty)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Property<Certificate> |
getCertificateProperty()
Gets the certificate which has the public key.
|
List<String> |
getDerivedToRestrictions()
Gets a detailed description of the "Derived->TO->PropertyType" with any constraints that might influence the validation.
Without any futher description of of the properties it is derived from, this is taken care of in the method "getDerivedFromRestrictions". |
Property<Signature> |
getSignatureProperty()
The signature file generate with the private key.
|
Property<File> |
getSignedFileProperty()
Gets the signed file
|
SignedFile |
validateDerivedValue(String propertyName)
Verifies that the signed file is valid, using the signature file and public key from the certificate.
|
getDerivedFrom, getDerivedFromCount, getDerivedFromProperty, getDerivedFromRestrictions, getMaxDerivedFrom, getMinDerivedFrom, getRestrictions, isMinAndMaxTheSame, isUseMaxDerivedFrom, isUseMinDerivedFrom, validateConstraints, validateValue
equals, getDefaultValue, getDefaultValueAsString, getDefaultValueDescription, getDescription, getDescription, getInitializationPriority, getIo, getLogger, getTypeName, hasDefaultValue, isDefaultValueValid, postGetValueProcessing, setDefaultValue, setInitializationPriority, setIo, setTypedValue, setTypeName, toString, toType, validate, validateNullType
public static final String TYPE
public CertificateSignedFilePropertyType(Property<File> signedFileProperty, Property<Certificate> certificateProperty, Property<byte[]> signatureProperty)
signedFileProperty
- the property which has the file which is signed with the signature and public key.certificateProperty
- the certificate which holds the public key.signatureProperty
- the signature file.public Property<File> getSignedFileProperty()
public Property<Certificate> getCertificateProperty()
public Property<Signature> getSignatureProperty()
public SignedFile validateDerivedValue(String propertyName) throws PropertyException
validateDerivedValue
in class DerivedPropertyType<SignedFile>
propertyName
- the name of derived PropertyPropertyException
- if it could not be converted into type T.public List<String> getDerivedToRestrictions()
DerivedPropertyType
getDerivedToRestrictions
in class DerivedPropertyType<SignedFile>