public class ICPBrasilOnLineSerproProviderCA extends Object implements ProviderCA
| Modifier and Type | Field and Description |
|---|---|
protected static MessagesBundle |
chainMessagesBundle |
| Constructor and Description |
|---|
ICPBrasilOnLineSerproProviderCA() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
checksum(File input)
FIXME static
FIXME localize on core
Calculate SHA-512 hash from file.
|
Collection<X509Certificate> |
getCAs()
Read Certificate Authority chain from local file.
|
Collection<X509Certificate> |
getFromZip(InputStream zip)
get Chain from file stored on local user diretory
|
String |
getName()
This provider Name
|
Collection<X509Certificate> |
getOnline(InputStream zip)
Get from SERPRO mirror repository
|
String |
getURLHash()
return the address (mirrored by SERPRO) where is located a file that contains the hash code (SHA512)
which corresponds to the file downloaded with
getURLZIP() . |
String |
getURLZIP()
return the address (mirrored by SERPRO) where is located a compacted file that contains the chain of ICP-BRASIL's trusted Certificate Authority.
|
protected static MessagesBundle chainMessagesBundle
public String getURLZIP()
public String getURLHash()
getURLZIP() .getURLZIP() .public Collection<X509Certificate> getCAs()
getCAs in interface ProviderCApublic byte[] checksum(File input)
input - file to read from.public Collection<X509Certificate> getOnline(InputStream zip)
zip - Input stream to read frompublic Collection<X509Certificate> getFromZip(InputStream zip) throws RuntimeException
zip - input stream to read fromRuntimeException - exceptionpublic String getName()
getName in interface ProviderCACopyright © 2023 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.