public class TrustedListManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EU_LOTL_TERRITORY |
static String |
EU_LOTL_URL |
static String |
EU_TC_LOTL_TERRITORY |
static String |
EU_TC_LOTL_URL |
| Modifier and Type | Method and Description |
|---|---|
static TrustedListManager |
getInstance()
Returns a TrustedListManager object.
|
Lotl |
getLotl(LotlId id) |
String |
getTerritoryByUrl(String url)
Returns territory code by the given URL.
|
TrustedList |
getTerritoryList(String territory)
Returns TrustedList for the given territory.
|
List<TrustedCertificate> |
getTrustedCertificates()
Returns the avaialble trusted certificates.
|
lv.eparaksts.util.ByteArrayDataSource |
getTrustedListResource(String url)
Returns TrustedList resource by the given URL.
|
TrustedListResult |
getTrustedListResult(String territory) |
TrustedListResult |
getTrustedListResult(String territory,
Set<LotlId> lotlIdFilter) |
static byte[] |
readTrustedListURL(String url) |
boolean |
update()
Updates the actual Trusted Lists of Certification Service Providers.
|
boolean |
update(String... territory) |
public static final String EU_LOTL_TERRITORY
public static final String EU_LOTL_URL
public static final String EU_TC_LOTL_TERRITORY
public static final String EU_TC_LOTL_URL
public static TrustedListManager getInstance()
public TrustedList getTerritoryList(String territory)
territory - code of the territory.getLotl(LotlId),
Lotl.getTerritoryList(String)public TrustedListResult getTrustedListResult(String territory)
public TrustedListResult getTrustedListResult(String territory, Set<LotlId> lotlIdFilter)
public boolean update()
throws TrustedListException
TrustedListException - if update failed.public boolean update(String... territory) throws TrustedListException
TrustedListExceptionpublic List<TrustedCertificate> getTrustedCertificates() throws TrustedListException
TrustedListException - if certificate collection failed.getLotl(LotlId),
Lotl.getTrustedCertificates()public lv.eparaksts.util.ByteArrayDataSource getTrustedListResource(String url)
url - TrustedList resource URL.public String getTerritoryByUrl(String url)
url - TrustedList resource URL.