Module jpms_dss_validation
Class UserFriendlyIdentifierProvider
java.lang.Object
eu.europa.esig.dss.validation.identifier.UserFriendlyIdentifierProvider
- All Implemented Interfaces:
eu.europa.esig.dss.model.identifier.TokenIdentifierProvider
public class UserFriendlyIdentifierProvider
extends Object
implements eu.europa.esig.dss.model.identifier.TokenIdentifierProvider
Creates an identifier for a given token by the template:
TOKEN-CommonCertName-CreationDate-id(optional)
Examples:
SIGNATURE-JohnConner-20201015-2045
CERTIFICATE-CryptoSign-20151014-1425
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating empty maps of processed tokens -
Method Summary
Modifier and TypeMethodDescriptiongetIdAsString(eu.europa.esig.dss.model.identifier.IdentifierBasedObject object) protected StringgetIdAsStringForCertRef(eu.europa.esig.dss.spi.x509.CertificateRef certificateRef) Gets aStringidentifier for a givenCertificateRefprotected StringgetIdAsStringForEvidenceRecordIdentifier(eu.europa.esig.dss.spi.x509.evidencerecord.EvidenceRecord evidenceRecord) Gets aStringidentifier for a givenEvidenceRecordprotected StringgetIdAsStringForRevRef(eu.europa.esig.dss.spi.x509.revocation.RevocationRef<?> revocationRef) Gets aStringidentifier for a givenRevocationRefprotected StringgetIdAsStringForRevTokenIdentifier(eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<?> revocationIdentifier) Gets aStringidentifier for a givenEncapsulatedRevocationTokenIdentifierprotected StringgetIdAsStringForSignature(eu.europa.esig.dss.spi.signature.AdvancedSignature signature) Gets aStringidentifier for a givenAdvancedSignatureprotected StringgetIdAsStringForSignatureScope(eu.europa.esig.dss.model.scope.SignatureScope signatureScope) Gets aStringidentifier for a givenSignatureScopeprotected StringgetIdAsStringForTL(eu.europa.esig.dss.model.tsl.TLInfo tlInfo) Gets aStringidentifier for a givenTLInfoprotected StringgetIdAsStringForToken(eu.europa.esig.dss.model.x509.Token token) Gets aStringidentifier for a givenTokenvoidsetCertificatePrefix(String certificatePrefix) Sets the prefix to be used for certificate identifiers Default = "CERTIFICATE"voidsetCounterSignaturePrefix(String counterSignaturePrefix) Sets the prefix to be used for counter-signature identifiers Default = "COUNTER-SIGNATURE"voidsetCrlPrefix(String crlPrefix) Sets the prefix to be used for CRL identifiers Default = "CRL"voidsetDateFormat(String dateFormat) Sets the dataFormat to be used for identifiers creation Default = "yyyyMMdd-HHmm"voidsetEvidenceRecordPrefix(String evidenceRecordPrefix) Sets the prefix to be used for evidence record identifiers Default = "EVIDENCE-RECORD"voidsetLOTLPrefix(String lotlPrefix) Sets the prefix to be used for a LOTL identifier Default = "LOTL"voidsetOcspPrefix(String ocspPrefix) Sets the prefix to be used for OCSP identifiers Default = "OCSP"voidsetPivotPrefix(String pivotPrefix) Sets the prefix to be used for pivot identifiers Default = "PIVOT"voidsetSignaturePrefix(String signaturePrefix) Sets the prefix to be used for signature identifiers Default = "SIGNATURE"voidsetSignedDataPrefix(String signedDataPrefix) Sets the prefix to be used for original document identifiers Default = "DOCUMENT"voidsetTimestampPrefix(String timestampPrefix) Sets the prefix to be used for timestamp identifiers Default = "TIMESTAMP"voidsetTLPrefix(String tlPrefix) Sets the prefix to be used for TL identifiers Default = "TL"
-
Constructor Details
-
UserFriendlyIdentifierProvider
public UserFriendlyIdentifierProvider()Default constructor instantiating empty maps of processed tokens
-
-
Method Details
-
setSignaturePrefix
-
setCounterSignaturePrefix
-
setTimestampPrefix
-
setCertificatePrefix
-
setCrlPrefix
-
setOcspPrefix
-
setSignedDataPrefix
-
setEvidenceRecordPrefix
-
setLOTLPrefix
-
setTLPrefix
-
setPivotPrefix
-
setDateFormat
-
getIdAsString
- Specified by:
getIdAsStringin interfaceeu.europa.esig.dss.model.identifier.TokenIdentifierProvider
-
getIdAsStringForSignature
-
getIdAsStringForToken
-
getIdAsStringForSignatureScope
-
getIdAsStringForTL
-
getIdAsStringForCertRef
-
getIdAsStringForRevRef
-
getIdAsStringForRevTokenIdentifier
protected String getIdAsStringForRevTokenIdentifier(eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<?> revocationIdentifier) Gets aStringidentifier for a givenEncapsulatedRevocationTokenIdentifier- Parameters:
revocationIdentifier-EncapsulatedRevocationTokenIdentifierto get String id for- Returns:
String
-
getIdAsStringForEvidenceRecordIdentifier
-