Class DigitalIdentitiesProcessor


  • public class DigitalIdentitiesProcessor
    extends java.lang.Object

    Class 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 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 attribute x509certList.
        Returns:
        the value of the attribute x509certList.
      • isThereSomeX509CertificateDigitalIdentity

        public final boolean isThereSomeX509CertificateDigitalIdentity()
        Checks if there is some X509 Certificate Digital Identity.
        Returns:
        true if there is at least one X509 Certificate Digital Identity, otherwise false.
      • getX509SubjectNameList

        public final java.util.List<java.lang.String> getX509SubjectNameList()
        Gets the value of the attribute x509SubjectNameList.
        Returns:
        the value of the attribute x509SubjectNameList.
      • isThereSomeX509SubjectNameDigitalIdentity

        public final boolean isThereSomeX509SubjectNameDigitalIdentity()
        Checks if there is some X509 Subject Name Digital Identity.
        Returns:
        true if there is at least one X509 Subject Name Digital Identity, otherwise false.
      • getX509publicKeysList

        public final java.util.List<java.security.PublicKey> getX509publicKeysList()
        Gets the value of the attribute x509publicKeysList.
        Returns:
        the value of the attribute x509publicKeysList.
      • isThereSomeX509PublicKeyDigitalIdentity

        public final boolean isThereSomeX509PublicKeyDigitalIdentity()
        Checks if there is some X509 Public Key Digital Identity.
        Returns:
        true if there is at least one X509 Public Key Digital Identity, otherwise false.
      • getX509ski

        public final java.util.List<byte[]> getX509ski()
        Gets the value of the attribute x509ski.
        Returns:
        the value of the attribute x509ski.
      • isThereSomeX509skiDigitalIdentity

        public final boolean isThereSomeX509skiDigitalIdentity()
        Checks if there is some X509 Subject Key Identifier Digital Identity.
        Returns:
        true if there is at least one X509 Subject Key Identifier Digital Identity, otherwise false.
      • isThereSomeDigitalIdentity

        public final boolean isThereSomeDigitalIdentity()
        Checks if there is some digital identity.
        Returns:
        true if there is some type of digital identity, otherwise false.
      • 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:
        true if the certificate is issued by some of the input identities, otherwise false.
      • 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:
        true if the certificate is some of the identities, otherwise false.
      • 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:
        true if the certificate is issued by some of the input identities, otherwise false.