public interface CertificateLoader
| Modifier and Type | Method and Description |
|---|---|
KeyStore |
getKeyStore()
Returns the KeyStore used by
CertificateLoader. |
X509Certificate |
load(File file)
Obtains the certificate from a file, defined by ICP-BRASIL
with the name A1.
|
X509Certificate |
loadFromToken()
Obtain the certificate from a Token or Smartcard, defined by
ICP-BRASIL with the name A3.
|
X509Certificate |
loadFromToken(String pinNumber)
When a PIN (Personal Identification Number) was informed,
obtain the certificate from a Token or Smartcard, defined by
ICP-BRASIL with the name A3.
|
X509Certificate |
loadFromToken(String pinNumber,
String alias)
When a PIN (Personal Identification Number) and Alias was informed,
obtain the certificate from a Token or Smartcard, defined by
ICP-BRASIL with the name A3.
|
void |
setKeyStore(KeyStore keyStore)
Associate a previously existing keystore.
|
X509Certificate load(File file) throws CertificateCoreException
file - The file that contains the certificate.CertificateCoreException - in case of problem in loading.X509Certificate loadFromToken() throws CertificateCoreException
CertificateCoreException - in case of problem in loading.X509Certificate loadFromToken(String pinNumber) throws CertificateCoreException
pinNumber - personal identification number.CertificateCoreException - in case of problem in loading.X509Certificate loadFromToken(String pinNumber, String alias) throws CertificateCoreException
pinNumber - a PIN (Personal Identification Number).alias - desired alias.CertificateCoreException - in case of problem in loading.void setKeyStore(KeyStore keyStore) throws CertificateCoreException
keyStore - an existing KeyStore.CertificateCoreException - if is not possible to set the
keystore.KeyStore getKeyStore() throws CertificateCoreException
CertificateLoader.KeyStore).CertificateCoreException - if is not possible to
get keystore.Copyright © 2025 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.