Class CompressedStamp
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.report.verificationPackage.compressedArtifact.CompressedArtifact<org.bouncycastle.cms.CMSSignedData>
br.ufsc.labsec.signature.conformanceVerifier.report.verificationPackage.compressedArtifact.CompressedStamp
public class CompressedStamp extends CompressedArtifact<org.bouncycastle.cms.CMSSignedData>
-
Field Summary
Fields inherited from class br.ufsc.labsec.signature.conformanceVerifier.report.verificationPackage.compressedArtifact.CompressedArtifact
artifact, artifactName
-
Constructor Summary
Constructors Constructor Description CompressedStamp(org.bouncycastle.cms.CMSSignedData artifact)
CompressedStamp(org.json.JSONObject artifact)
-
Method Summary
Modifier and Type Method Description Integer
computeHashCode()
protected Map<String,Serializable>
getMap()
Retorna umMap
com as informações do artefato.protected org.bouncycastle.cms.CMSSignedData
parseArtifact(org.json.JSONObject artifact)
Realiza o parsing de um artefato a partir de umJSONObject
.static Map<Integer,CompressedStamp>
parseCompressed(org.json.JSONObject artifactsInfo)
Methods inherited from class br.ufsc.labsec.signature.conformanceVerifier.report.verificationPackage.compressedArtifact.CompressedArtifact
compress, encodedToBase64String, equals, getArtifact, getCode, getEncoded, getExtraEncoded, getExtraName, getName, getNullable, getSource, hasArtifact, hashCode, parseMultipleCompressed, parseSingleCompressed, toBase64
-
Constructor Details
-
CompressedStamp
public CompressedStamp(org.bouncycastle.cms.CMSSignedData artifact) -
CompressedStamp
public CompressedStamp(org.json.JSONObject artifact)
-
-
Method Details
-
getMap
Description copied from class:CompressedArtifact
Retorna umMap
com as informações do artefato.- Specified by:
getMap
in classCompressedArtifact<org.bouncycastle.cms.CMSSignedData>
- Returns:
- Um
Map
com as informações do artefato. - Throws:
IOException
- Caso tenha havido um erro de I/O.
-
parseArtifact
protected org.bouncycastle.cms.CMSSignedData parseArtifact(org.json.JSONObject artifact) throws IOExceptionDescription copied from class:CompressedArtifact
Realiza o parsing de um artefato a partir de umJSONObject
.- Specified by:
parseArtifact
in classCompressedArtifact<org.bouncycastle.cms.CMSSignedData>
- Parameters:
artifact
-JSONObject
relativo ao artefato.- Returns:
- O artefato parseado.
- Throws:
IOException
- Caso tenha havido um erro de I/O.
-
computeHashCode
- Overrides:
computeHashCode
in classCompressedArtifact<org.bouncycastle.cms.CMSSignedData>
-
parseCompressed
-