Class JAXBCertEntityRepository
java.lang.Object
eu.europa.esig.dss.pki.jaxb.model.JAXBCertEntityRepository
- All Implemented Interfaces:
CertEntityRepository<JAXBCertEntity>
public class JAXBCertEntityRepository
extends Object
implements CertEntityRepository<JAXBCertEntity>
JAXB PKI implementation of
CertEntityRepository-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAll()Returns all cert entries from the repositorygetByCertificateToken(CertificateToken certificateToken) Retrieves the certificate entity associated with the given certificate token.getByPkiName(String name) Retrieves a list ofJAXBCertEntityfor the given JAXB PKI namegetBySubject(String subjectName) Gets a list of cert entities by the given subject distinguished namegetCertEntityBySerialNumberAndParentSubject(Long serialNumber, String issuerName) Gets a cert entity for the given serial number and an issuer distinguished namegetCertEntityBySubject(String subjectName) Gets a single cert entity with the givensubjectName.getIssuer(JAXBCertEntity certEntity) Retrieves the issuer certificate entity for the given certificate entity.getRevocation(JAXBCertEntity dbCertEntity) Retrieves the revocation information for the given certificate entity.getRevocationList(JAXBCertEntity parent) Retrieves the revocation list associated with the parent certificate entity.Returns a list of all trust anchors from the repositorybooleansave(JAXBCertEntity dbCertEntity) Adds a newJAXBCertEntityto the repository
-
Constructor Details
-
JAXBCertEntityRepository
public JAXBCertEntityRepository()Default constructor
-
-
Method Details
-
getAll
Returns all cert entries from the repository- Returns:
- a list of
JAXBCertEntitys
-
getCertEntityBySerialNumberAndParentSubject
public JAXBCertEntity getCertEntityBySerialNumberAndParentSubject(Long serialNumber, String issuerName) Gets a cert entity for the given serial number and an issuer distinguished name- Parameters:
serialNumber-Longserial number of the certificateissuerName-Stringissuer certificate's distinguished name- Returns:
JAXBCertEntity
-
getTrustAnchors
Returns a list of all trust anchors from the repository- Returns:
- a list of
JAXBCertEntitys
-
getByPkiName
Retrieves a list ofJAXBCertEntityfor the given JAXB PKI name- Parameters:
name-Stringname of the PKI- Returns:
- a list of
JAXBCertEntitys
-
getBySubject
Gets a list of cert entities by the given subject distinguished name- Parameters:
subjectName-Stringcertificate subject distinguished name to match- Returns:
- a list of
JAXBCertEntitys
-
getCertEntityBySubject
Gets a single cert entity with the givensubjectName. If more than one cert entity with the given subject DN is found, returns the matching first entry.- Parameters:
subjectName-Stringcertificate subject distinguished name to match- Returns:
JAXBCertEntity
-
save
Adds a newJAXBCertEntityto the repository- Parameters:
dbCertEntity-JAXBCertEntityto add- Returns:
JAXBCertEntitythat have been added
-
getRevocationList
Description copied from interface:CertEntityRepositoryRetrieves the revocation list associated with the parent certificate entity.- Specified by:
getRevocationListin interfaceCertEntityRepository<JAXBCertEntity>- Parameters:
parent- The parent certificate entity.- Returns:
- A list containing the revocation entities associated with the parent certificate.
-
getRevocation
Description copied from interface:CertEntityRepositoryRetrieves the revocation information for the given certificate entity.- Specified by:
getRevocationin interfaceCertEntityRepository<JAXBCertEntity>- Parameters:
dbCertEntity- The certificate entity .- Returns:
- The revocation information .
-
getIssuer
Description copied from interface:CertEntityRepositoryRetrieves the issuer certificate entity for the given certificate entity.- Specified by:
getIssuerin interfaceCertEntityRepository<JAXBCertEntity>- Parameters:
certEntity- The certificate entity.- Returns:
- The issuer certificate entity .
-
getByCertificateToken
Description copied from interface:CertEntityRepositoryRetrieves the certificate entity associated with the given certificate token.- Specified by:
getByCertificateTokenin interfaceCertEntityRepository<JAXBCertEntity>- Parameters:
certificateToken- The certificate token to search for.- Returns:
- The certificate entity associated with the provided token, or null if not found.
-