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
-
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 ofJAXBCertEntity
for 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 repositoryboolean
save
(JAXBCertEntity dbCertEntity) Adds a newJAXBCertEntity
to the repository
-
Constructor Details
-
JAXBCertEntityRepository
public JAXBCertEntityRepository()Default constructor
-
-
Method Details
-
getAll
Returns all cert entries from the repository- Returns:
- a list of
JAXBCertEntity
s
-
getCertEntityBySerialNumberAndParentSubject
public JAXBCertEntity getCertEntityBySerialNumberAndParentSubject(Long serialNumber, String issuerName) Gets a cert entity for the given serial number and an issuer distinguished name- Parameters:
serialNumber
-Long
serial number of the certificateissuerName
-String
issuer certificate's distinguished name- Returns:
JAXBCertEntity
-
getTrustAnchors
Returns a list of all trust anchors from the repository- Returns:
- a list of
JAXBCertEntity
s
-
getByPkiName
Retrieves a list ofJAXBCertEntity
for the given JAXB PKI name- Parameters:
name
-String
name of the PKI- Returns:
- a list of
JAXBCertEntity
s
-
getBySubject
Gets a list of cert entities by the given subject distinguished name- Parameters:
subjectName
-String
certificate subject distinguished name to match- Returns:
- a list of
JAXBCertEntity
s
-
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
-String
certificate subject distinguished name to match- Returns:
JAXBCertEntity
-
save
Adds a newJAXBCertEntity
to the repository- Parameters:
dbCertEntity
-JAXBCertEntity
to add- Returns:
JAXBCertEntity
that have been added
-
getRevocationList
Description copied from interface:CertEntityRepository
Retrieves the revocation list associated with the parent certificate entity.- Specified by:
getRevocationList
in 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:CertEntityRepository
Retrieves the revocation information for the given certificate entity.- Specified by:
getRevocation
in interfaceCertEntityRepository<JAXBCertEntity>
- Parameters:
dbCertEntity
- The certificate entity .- Returns:
- The revocation information .
-
getIssuer
Description copied from interface:CertEntityRepository
Retrieves the issuer certificate entity for the given certificate entity.- Specified by:
getIssuer
in interfaceCertEntityRepository<JAXBCertEntity>
- Parameters:
certEntity
- The certificate entity.- Returns:
- The issuer certificate entity .
-
getByCertificateToken
Description copied from interface:CertEntityRepository
Retrieves the certificate entity associated with the given certificate token.- Specified by:
getByCertificateToken
in interfaceCertEntityRepository<JAXBCertEntity>
- Parameters:
certificateToken
- The certificate token to search for.- Returns:
- The certificate entity associated with the provided token, or null if not found.
-