Class CountryServiceContext
java.lang.Object
com.itextpdf.signatures.validation.lotl.CountryServiceContext
- All Implemented Interfaces:
-
IServiceContext
Class representing TSPService entry in a country specific Trusted List.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCertificate(Certificate certificate) Adds a certificate to the service context.Retrieves the list of certificates associated with the service context.Gets the latestServiceChronologicalInfoinstance.getServiceChronologicalInfoByDate(long milliseconds) GetsServiceChronologicalInfocorresponding to this country service context and DateTime in milliseconds.GetsServiceChronologicalInfocorresponding to this country service context andLocalDateTime.Gets list ofServiceChronologicalInfoobjects corresponding to this country service context.Gets service typeStringcorresponding to this country service context.
-
Method Details
-
getCertificates
Retrieves the list of certificates associated with the service context.- Specified by:
-
getCertificatesin interfaceIServiceContext - Returns:
-
a list of
Certificateobjects
-
addCertificate
Adds a certificate to the service context.- Specified by:
-
addCertificatein interfaceIServiceContext - Parameters:
-
certificate- the certificate to be added
-
getServiceChronologicalInfos
Gets list ofServiceChronologicalInfoobjects corresponding to this country service context.- Returns:
-
list of
ServiceChronologicalInfoobjects
-
getServiceType
Gets service typeStringcorresponding to this country service context.- Returns:
-
service type
String
-
getServiceChronologicalInfoByDate
GetsServiceChronologicalInfocorresponding to this country service context and DateTime in milliseconds.- Parameters:
-
milliseconds- DateTime in milliseconds - Returns:
-
corresponding
ServiceChronologicalInfoinstance
-
getServiceChronologicalInfoByDate
GetsServiceChronologicalInfocorresponding to this country service context andLocalDateTime.- Parameters:
-
time-LocalDateTimedate time - Returns:
-
corresponding
ServiceChronologicalInfoinstance
-
getCurrentChronologicalInfo
Gets the latestServiceChronologicalInfoinstance.- Returns:
-
the latest
ServiceChronologicalInfoinstance
-