Record Class VRIValidator
java.lang.Object
java.lang.Record
br.ufsc.labsec.signature.conformanceVerifier.pades.utils.VRIValidator
- Record Components:
vriSignatureEntry- Dicionário VRI da assinaturapolicyVRI- Dicionário VRI da política de assinatura
public record VRIValidator(org.apache.pdfbox.cos.COSDictionary vriSignatureEntry, VriDictionary policyVRI)
extends Record
Esta classe é responsável pela validação do dicionário VRI.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVRIValidator(org.apache.pdfbox.cos.COSDictionary vriSignatureEntry, VriDictionary policyVRI) Construtor -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepolicyVRIrecord component.final StringtoString()Returns a string representation of this record class.validation(PadesVerifier verifier) Valida o dicionário VRI da assinaturaorg.apache.pdfbox.cos.COSDictionaryReturns the value of thevriSignatureEntryrecord component.
-
Field Details
-
VRI_NOT_FOUND_MESSAGE
- See Also:
-
-
Constructor Details
-
VRIValidator
Construtor- Parameters:
vriSignatureEntry- O dicionário VRI da assinaturapolicyVRI- O dicionário VRI da política de assinatura
-
-
Method Details
-
validation
Valida o dicionário VRI da assinatura- Parameters:
verifier- O Verifer de assinaturas PAdES- Returns:
- Lista de entradas obrigatórias que não estão presentes
- Throws:
DictionaryException
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
vriSignatureEntry
public org.apache.pdfbox.cos.COSDictionary vriSignatureEntry()Returns the value of thevriSignatureEntryrecord component.- Returns:
- the value of the
vriSignatureEntryrecord component
-
policyVRI
-