Class DigitalIdentitiesProcessor
- java.lang.Object
-
- es.gob.afirma.tsl.certValidation.impl.common.DigitalIdentitiesProcessor
-
public class DigitalIdentitiesProcessor extends java.lang.ObjectClass that represents a Digital Identities Processor.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.3, 19/09/2022.
-
-
Constructor Summary
Constructors Constructor Description DigitalIdentitiesProcessor()Constructor method for the class DigitalIdentitiesProcessor.java.DigitalIdentitiesProcessor(java.util.List<DigitalID> digitalIdentitiesList)Constructor method for the class DigitalIdentitiesProcessor.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckIfCertificateIsIssuedBySomeIdentity(java.security.cert.X509Certificate cert, TSLValidatorResult validationResult)Checks if the input certificate is issued by some of the identities and sets its in the result.booleancheckIfCertificateIsIssuedBySomeIdentity(java.security.cert.X509Certificate cert, ResultServiceInformation resultSI)Checks if the input certificate is issued by some of the identities and sets its in the result.booleancheckIfDigitalIdentitiesMatchesCertificate(java.security.cert.X509Certificate cert)Checks if the input certificate is some of the identities and sets its in the result.java.util.List<java.security.cert.X509Certificate>getX509certList()Gets the value of the attributex509certList.java.util.List<java.security.PublicKey>getX509publicKeysList()Gets the value of the attributex509publicKeysList.java.util.List<byte[]>getX509ski()Gets the value of the attributex509ski.java.util.List<java.lang.String>getX509SubjectNameList()Gets the value of the attributex509SubjectNameList.booleanisThereSomeDigitalIdentity()Checks if there is some digital identity.booleanisThereSomeX509CertificateDigitalIdentity()Checks if there is some X509 Certificate Digital Identity.booleanisThereSomeX509PublicKeyDigitalIdentity()Checks if there is some X509 Public Key Digital Identity.booleanisThereSomeX509skiDigitalIdentity()Checks if there is some X509 Subject Key Identifier Digital Identity.booleanisThereSomeX509SubjectNameDigitalIdentity()Checks if there is some X509 Subject Name Digital Identity.
-
-
-
Constructor Detail
-
DigitalIdentitiesProcessor
public DigitalIdentitiesProcessor()
Constructor method for the class DigitalIdentitiesProcessor.java.
-
DigitalIdentitiesProcessor
public DigitalIdentitiesProcessor(java.util.List<DigitalID> digitalIdentitiesList)
Constructor method for the class DigitalIdentitiesProcessor.java.- Parameters:
digitalIdentitiesList- List of Digital Identities to process.
-
-
Method Detail
-
getX509certList
public final java.util.List<java.security.cert.X509Certificate> getX509certList()
Gets the value of the attributex509certList.- Returns:
- the value of the attribute
x509certList.
-
isThereSomeX509CertificateDigitalIdentity
public final boolean isThereSomeX509CertificateDigitalIdentity()
Checks if there is some X509 Certificate Digital Identity.- Returns:
trueif there is at least one X509 Certificate Digital Identity, otherwisefalse.
-
getX509SubjectNameList
public final java.util.List<java.lang.String> getX509SubjectNameList()
Gets the value of the attributex509SubjectNameList.- Returns:
- the value of the attribute
x509SubjectNameList.
-
isThereSomeX509SubjectNameDigitalIdentity
public final boolean isThereSomeX509SubjectNameDigitalIdentity()
Checks if there is some X509 Subject Name Digital Identity.- Returns:
trueif there is at least one X509 Subject Name Digital Identity, otherwisefalse.
-
getX509publicKeysList
public final java.util.List<java.security.PublicKey> getX509publicKeysList()
Gets the value of the attributex509publicKeysList.- Returns:
- the value of the attribute
x509publicKeysList.
-
isThereSomeX509PublicKeyDigitalIdentity
public final boolean isThereSomeX509PublicKeyDigitalIdentity()
Checks if there is some X509 Public Key Digital Identity.- Returns:
trueif there is at least one X509 Public Key Digital Identity, otherwisefalse.
-
getX509ski
public final java.util.List<byte[]> getX509ski()
Gets the value of the attributex509ski.- Returns:
- the value of the attribute
x509ski.
-
isThereSomeX509skiDigitalIdentity
public final boolean isThereSomeX509skiDigitalIdentity()
Checks if there is some X509 Subject Key Identifier Digital Identity.- Returns:
trueif there is at least one X509 Subject Key Identifier Digital Identity, otherwisefalse.
-
isThereSomeDigitalIdentity
public final boolean isThereSomeDigitalIdentity()
Checks if there is some digital identity.- Returns:
trueif there is some type of digital identity, otherwisefalse.
-
checkIfCertificateIsIssuedBySomeIdentity
public final boolean checkIfCertificateIsIssuedBySomeIdentity(java.security.cert.X509Certificate cert, TSLValidatorResult validationResult)Checks if the input certificate is issued by some of the identities and sets its in the result.- Parameters:
cert- X509v3 certificate to check.validationResult- Object where is stored the validation result data.- Returns:
trueif the certificate is issued by some of the input identities, otherwisefalse.
-
checkIfDigitalIdentitiesMatchesCertificate
public final boolean checkIfDigitalIdentitiesMatchesCertificate(java.security.cert.X509Certificate cert)
Checks if the input certificate is some of the identities and sets its in the result.- Parameters:
cert- X509v3 certificate to check.- Returns:
trueif the certificate is some of the identities, otherwisefalse.
-
checkIfCertificateIsIssuedBySomeIdentity
public final boolean checkIfCertificateIsIssuedBySomeIdentity(java.security.cert.X509Certificate cert, ResultServiceInformation resultSI)Checks if the input certificate is issued by some of the identities and sets its in the result.- Parameters:
cert- X509v3 certificate to check.resultSI- Result obtained when executing the procedure 4.3.Obtaining listed services matching a certificate of ETSI TS 119 615 v.1.1.1.- Returns:
trueif the certificate is issued by some of the input identities, otherwisefalse.
-
-